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

#1 2008-03-08 14:12:25

teguki
Scratcher
Registered: 2008-03-06
Posts: 72

cant do anything for a set lenth of time (reloading a gun)

how do i make the game im currently working on require the player to hold (r) down for 3 secs to reload the gun?

and...

how do i make each mag have 20% more bullets when my adrenaline level reaches 100

also...

*, i forgot what i was gonna ask next.

Last edited by teguki (2008-03-08 15:20:40)

Offline

 

#2 2008-03-08 14:17:01

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: cant do anything for a set lenth of time (reloading a gun)

Inside your loop that checks for other keypresses, put

If "R" pressed
- set timer to zero
- repeat until NOT key R pressed or timer>3.1
- - if timer>3 set ammo to 10


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-03-08 15:18:45

teguki
Scratcher
Registered: 2008-03-06
Posts: 72

Re: cant do anything for a set lenth of time (reloading a gun)

thanx, but i worked that out about half a minute after i made that post, sorry

Offline

 

Board footer