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

#1 2009-11-22 15:30:04

Aelic7
Scratcher
Registered: 2009-08-24
Posts: 22

Making a game stop sidescrolling

I am making a sidescrolling game using the <set x to( (( ScrollX <+> 480 )))  format, and I am almost done, I just need to make a boss. My question is, how do you make the game stop sidescrolling so you can make a boss level? Thanks.

Last edited by Aelic7 (2009-11-22 15:31:26)

Offline

 

#2 2009-11-22 16:13:25

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Making a game stop sidescrolling

Hmm, I would create a variable called "Boss" and then put the scrolling scripts inside this.

<when green flag clicked>
<forever>
<if><( Boss <=> 0 )>
Scrolling scripts go here
<else>
No scripts needed here.
<end>

Then when you reach the boss, tell it to set boss to 1 and the scrolling script will no longer move  smile

Last edited by 06dknibbs (2009-11-22 16:14:25)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2009-11-23 09:44:30

Aelic7
Scratcher
Registered: 2009-08-24
Posts: 22

Re: Making a game stop sidescrolling

Wow, thanks! I never thought about that.

Offline

 

Board footer