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

#1 2011-10-09 07:55:49

Babado
Scratcher
Registered: 2011-09-15
Posts: 84

Ghost Y U MOVE?

So, working on a Halloween project.

Which involves witches, ghosts etc.

So, I want it so that the ghost will stay in one place. Until witches health=0.

Then, once that happens it will be able to move forward towards the hero. But it wont work D=

Suggestions?

Offline

 

#2 2011-10-09 09:59:31

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Ghost Y U MOVE?

Well, it's a little difficult to determine what's going wrong with a complex project, especially you don't have much information. Could you perhaps provide a little more detail about what specifically doesn't work? How does the ghost behave? Seeing the script would be useful too.

Until then, I'd recommend setting Scratch to single-stepping (Edit > Set single stepping > flash blocks slow/fast) and making watchers for variables involved in the script show on screen to help give you a better idea of what's going on behind the scenes to make it work improperly.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-10-09 10:09:56

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Ghost Y U MOVE?

Use a wait until block to wait until the witches health = 0 if it's less than 0 make sure to set it to 0  wink . Then, after that, make him move towards the hero!

Offline

 

Board footer