The Daily Click ::. Forums ::. Klik Coding Help ::. Jumping to next level with same position on screen.
 

Post Reply  Post Oekaki 
 

Posted By Message

eyeangle



Registered
  12/06/2003
Points
  1683
3rd March, 2010 at 07:34:31 -

I want to be able to keep the sprites Y position from the previous level.

For example: If I jump into the next frame, I always start where I have placed my sprite active object, which is on the ground at 0, 560 etc, rather than the Y position of the previous level.

 
theonecardgame.com

Fordom

Nordanrikets konung

Registered
  12/02/2009
Points
  190

VIP Member
3rd March, 2010 at 08:30:11 -

"I want to be able to keep the sprites Y position from the previous level. "

If (("Sprite") => Frame Width))
{
Set Global value A == Y("Sprite");
Next Frame
}

 
This forum is full of trolls and disinfo agents.

Mkingy



Registered
  05/07/2003
Points
  4771

Box Blue
3rd March, 2010 at 11:12:27 -

Then obviously set the Y position of sprite to global value A at the start of the next frame!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click