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

#1 2011-02-21 05:33:21

rroyaaal
New Scratcher
Registered: 2011-02-20
Posts: 5

Platform Game help (:

If you could answer any of these questions, please do:

1. Instead of using the timer i have used a variable to add one to it every second, but when i press pause or the level is complete i would like the time to stop adding, any ideas? The code for that is:

[blocks]
<repeat until> <( <{ Time }> <=> 120 )>
<wait( 1<change{ Time  }by( 1 )secs>
[/blocks]

Offline

 

#2 2011-02-21 06:06:20

rroyaaal
New Scratcher
Registered: 2011-02-20
Posts: 5

Re: Platform Game help (:

Another Question:
I want the level to be completed when my character touches another sprite, but it doesn't work if i use, touching colour, or touching sprite. Please help (;

Offline

 

#3 2011-02-21 06:50:53

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: Platform Game help (:

[blocks]
<repeat until><( <{time}> <=> 120  )
<if><(<{paused}>  <=> false )>
<wait( 1 )secsc>
<change{ time  }by( 1 )
<end>
<end>
[/blocks]

Offline

 

#4 2011-02-21 07:11:34

Enzo1997
Scratcher
Registered: 2008-06-14
Posts: 500+

Re: Platform Game help (:

or you could just use change time by 1, but that's too easy right?


Your music tastes are bad, therefore your argument is irrelevant.

Offline

 

#5 2011-02-21 07:55:40

rroyaaal
New Scratcher
Registered: 2011-02-20
Posts: 5

Re: Platform Game help (:

Enzo1997 wrote:

or you could just use change time by 1, but that's too easy right?

thats what i have done.

i want to be able to pause it, and then play it from the same time again

Offline

 

Board footer