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

#1 2009-12-20 19:55:06

ournamestoolong
Scratcher
Registered: 2009-11-15
Posts: 100+

I need help

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)


Look at the simulation software, the Pythagoras Engine!
http://scratch.mit.edu/projects/ournamestoolong/1755383

Offline

 

#2 2009-12-20 19:57:23

game_freak42
Scratcher
Registered: 2009-09-04
Posts: 100+

Re: I need help

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

 

#3 2009-12-20 19:58:37

ournamestoolong
Scratcher
Registered: 2009-11-15
Posts: 100+

Re: I need help

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)


Look at the simulation software, the Pythagoras Engine!
http://scratch.mit.edu/projects/ournamestoolong/1755383

Offline

 

#4 2009-12-20 20:00:06

ournamestoolong
Scratcher
Registered: 2009-11-15
Posts: 100+

Re: I need help

Also, the first part of the script works (The first zombie takes damage correctly) But the second one doesn't.


Look at the simulation software, the Pythagoras Engine!
http://scratch.mit.edu/projects/ournamestoolong/1755383

Offline

 

#5 2009-12-20 20:01:43

game_freak42
Scratcher
Registered: 2009-09-04
Posts: 100+

Re: I need help

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

 

#6 2009-12-20 20:04:18

game_freak42
Scratcher
Registered: 2009-09-04
Posts: 100+

Re: I need help

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

 

#7 2009-12-20 20:06:57

ournamestoolong
Scratcher
Registered: 2009-11-15
Posts: 100+

Re: I need help

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.


Look at the simulation software, the Pythagoras Engine!
http://scratch.mit.edu/projects/ournamestoolong/1755383

Offline

 

#8 2009-12-20 20:09:39

game_freak42
Scratcher
Registered: 2009-09-04
Posts: 100+

Re: I need help

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 look

Oh, 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

 

Board footer