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

#1 2011-11-25 22:47:12

dcuniverse
Scratcher
Registered: 2011-11-24
Posts: 10

Move It

O.K so I am making a game called move it when you hit a circle you take a life away and go back to start but it is not doing that i put this if green flag clicked forever if touching every sprite except one you play as add 1 death move to sstarting point.Please Help!

Offline

 

#2 2011-11-25 23:23:39

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Move It

Looks like this belongs in All About Scratch, not Show and Tell - I'll move it there for you.

Offline

 

#3 2011-11-26 11:55:56

mattb777
Scratcher
Registered: 2011-07-15
Posts: 1000+

Re: Move It

It should start with When [Green Flag] Clicked.
Then you should have Go To x[x value of starting point] y[y value of starting point]
Then: Forever
If Touching [One enemy sprite]
Change [variable eg. Lives] by -1
Go to [starting point]
Wait 0.5 secs

Make similar scripts to the forever loop above for each enemy sprite.

This is still on the forever loop.
If [lives]=0
Stop All/Stop Script/Switch to Backgound [Game Over]

You were making two mistakes, 1 major, 1 minor.
1. (The Major One) You made the script add deaths instead of taking away lives.
2. (The Minor One) You didn't let the script wait after losing a life. If the script worked, all of your lives would be lost by touching the enemy once. Most games people claim are glitchy are just not waited out.


I'm back  big_smile

Offline

 

Board footer