A vanishing player..

Non-platform specific questions.

A vanishing player..

Postby Hblade » Tue Apr 03, 2012 6:48 am

I've come across what I THINK to be a memory leak.. I have a simple code:
Code: Select all
if(yvelocity<10)
{
    yvelocity+=.2;
}

But for some incredibly random reason, the yvelocity SHOOTS into the negative numbers, I mean it SHOOTS... I debuged it, and it reached -10,000 within a couple of seconds.

Why? Whats going on? anybody know? if I get rid of that code, all is well...


Nothing I have tried yet, will work. What caused this? I'd love to know, I'm trying to keep my cool about this, because theres no point in getting angry, but thats mighty hard when you come across something like this. :(


More info:
The actor that has this, has absolutely NO physical responses, none whatsoever. Absolutely not 1 single physical response is in this game yet, but he still goes blitzing into the air at insane speeds, like a nasa space rocket.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: A vanishing player..

Postby skydereign » Tue Apr 03, 2012 7:11 am

I replied to your pm. And not sure how that would be a memory leak.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: A vanishing player..

Postby Hblade » Tue Apr 03, 2012 7:21 am

Even weirder things are happening. I made a video and am uploading it now.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: A vanishing player..

Postby Game A Gogo » Wed Apr 04, 2012 12:18 pm

Do you have motion compensation on?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: A vanishing player..

Postby Hblade » Wed Apr 04, 2012 3:26 pm

nope I didn't. I've used alternative methods to get around this, but it happened again on a fresh ged. I don't know what was going on lol, but somehow adding a view moving script using Distance scripting, (if distance, etc..) and then angle=direction, then the usage of directional_velocity on the view to move to the player smoothly, (In fact it was your script for your perfect movement you did on mario hehe), that combined with the yvelocity code of my coll actor, (the collider), for some reason prevented the player from spawning all together.

However, if I remove the code that causes the view to move, it worked.

So again I had to use an alternative, because I don't have time to worry about it xD because its the competition game.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: A vanishing player..

Postby Game A Gogo » Wed Apr 04, 2012 3:37 pm

Ah, probably the view was the one being launched :P Maybe I'll make a new function that's much better :D
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: A vanishing player..

Postby Hblade » Wed Apr 04, 2012 3:48 pm

Haha alright, but I doubt the view was moving, because it was suposed to be locked to that corner xD Only moving right or up at first.

Also: It never happened before, even in my "Crescent Demo" i used the same script method lol
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest