This is probably in the wrong forum, but i'm new, and I don't know where to put this.
I am making a game, and I am having trouble with this script. It only works once I select it, then deselect it during play. Here is the project. http://scratch.mit.edu/projects/ournamestoolong/812569
The problematic script is:
When Flag Clicked
Go to x:-29 Y:53
Hide
Set Mclip to 20
Set AKclip to 5
Forever
If Touching Sprite1 (The First Zombie)
If not touching shooter
Go to X:105 Y: 53
Hide
If Gun = AK
Change Zomblife1 by -7
If Gun = Machine
Change Zomblife1 by -2
If Touching Zombie2 (This is where problems started)
If not touching Shooter
Go to X:105 Y: 53
Hide
If Gun = AK
Change Zomblife2 by -7
If Gun = Machine
Change Zomblife1 by -2
Could anyone help?
Last edited by ournamestoolong (2009-12-20 19:55:25)
Offline
have you set the value of Gun to 1, 2, 3, or 4?
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a look
Last edited by game_freak42 (2009-12-20 20:05:39)
Offline
game_freak42 wrote:
have you set the value of Gun to 1, 2, 3, or 4?
The Variable of the Gun is described in words. (In this case AK and Machine)
Offline
Also, the first part of the script works (The first zombie takes damage correctly) But the second one doesn't.
Offline
Ok. With the if touching zombie 2 script, transport it to a new script maybe?
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a look
Last edited by game_freak42 (2009-12-20 20:05:49)
Offline
the game works for me
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a look
Last edited by game_freak42 (2009-12-20 20:05:57)
Offline
game_freak42 wrote:
the game works for me
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a look
Oh, it works online. I guess i'll just stop tampering with it then.
Offline
ournamestoolong wrote:
game_freak42 wrote:
the game works for me
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a lookOh, it works online. I guess i'll just stop tampering with it then.
theres no problems with it.
__________________________________
http://scratch.mit.edu/projects/game_freak42/809613
The best thing ive made have a look
Offline