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

#1 2010-01-19 10:06:51

nikki99
Scratcher
Registered: 2010-01-16
Posts: 6

Platform Games

I'm making a platform game. But when my main sprite touches a coin, the coin doesn't disappear! The main sprite is supposed to broadcast coin, then when the coin recieves the message, it doesn't go away! Any ideas?

Offline

 

#2 2010-01-19 10:13:52

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Platform Games

Upload the project to the site and I'll see if I can fix it.

Offline

 

#3 2010-01-22 01:07:54

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Platform Games

You can use single stepping mode to see where it is messing up as there is no way for us to know until you post your app

Could be that the main sprite is detecting the collision but you aren't then triggering the Hide for the coin, or that it hides and immediately re-shows.
...or that you have accidentally used the wrong broadcast or receive name
...or that you have made the collision detection routine separate from your main runtime code by accident and it is being skipped.
etc etc etc but don't feel bad. People want to help so please please post the code you have done so far so we can >=P


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#4 2010-01-24 11:41:59

EmperorEvil
Scratcher
Registered: 2009-02-13
Posts: 1000+

Re: Platform Games

Did you try this (Obviously):    The First sprite says: <when green flag clicked><forever if><touching[ Coin <broadcast[ GO AWAY COIN!     The Coin Says:   <when I receive[ GO AWAY COIN!<hide> and also the coin needs to have the script <when green flag clicked><show> of course.

Last edited by EmperorEvil (2010-01-24 11:42:30)


http://oi54.tinypic.com/t8ogle.jpg http://blocks.scratchr.org/API.php?user=veggieman001&amp;action=onlineStatus

Offline

 

#5 2010-01-25 18:54:07

52594
Scratcher
Registered: 2010-01-25
Posts: 1

Re: Platform Games

Did you try if touching spritewhatever hide???

Offline

 

Board footer