This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-14 15:41:40

masterhand7
Scratcher
Registered: 2009-10-05
Posts: 100+

How to get sprite to go to other locations with Perfect Platformer???

I'm using a modification of RHY's Perfect Platformer Base Script in my new game, PUSH. However, I'm stuck on a bug. When I put in blocks to make the player sprite to go to other location when a new level starts:

[blocks]<if><(  <Level=1>  )><go to x sad -225 )y sad -133
<else><if><( <Level=2> )><go to x sad -223)y sad 3

the sprite stays in place when it goes to level 2. Any help?


Click here to see the first iPhone virus!
http://www.danasoft.com/sig/MASTERHAND7PWNZ.jpg

Offline

 

#2 2010-03-14 17:00:21

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: How to get sprite to go to other locations with Perfect Platformer???

masterhand7 wrote:

I'm using a modification of RHY's Perfect Platformer Base Script in my new game, PUSH. However, I'm stuck on a bug. When I put in blocks to make the player sprite to go to other location when a new level starts:

[blocks]<if><(  <Level=1>  )><go to x sad -225 )y sad -133
<else><if><( <Level=2> )><go to x sad -223)y sad 3

the sprite stays in place when it goes to level 2. Any help?

You need to make sure the player only goes to that position when the level starts, and that you also remove the default goto that I put in.

Offline

 

Board footer