Page 1 of 1

A vanishing player..

PostPosted: Tue Apr 03, 2012 6:48 am
by Hblade
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.

Re: A vanishing player..

PostPosted: Tue Apr 03, 2012 7:11 am
by skydereign
I replied to your pm. And not sure how that would be a memory leak.

Re: A vanishing player..

PostPosted: Tue Apr 03, 2012 7:21 am
by Hblade
Even weirder things are happening. I made a video and am uploading it now.

Re: A vanishing player..

PostPosted: Wed Apr 04, 2012 12:18 pm
by Game A Gogo
Do you have motion compensation on?

Re: A vanishing player..

PostPosted: Wed Apr 04, 2012 3:26 pm
by Hblade
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.

Re: A vanishing player..

PostPosted: Wed Apr 04, 2012 3:37 pm
by Game A Gogo
Ah, probably the view was the one being launched :P Maybe I'll make a new function that's much better :D

Re: A vanishing player..

PostPosted: Wed Apr 04, 2012 3:48 pm
by Hblade
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