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

#1 2009-10-07 17:24:22

Ilikecake112
Scratcher
Registered: 2009-10-07
Posts: 3

So I'm trying to make a game...

..and I'm having some trouble. At the beginning of the game, it starts out with a demon, and a knight. (You) But there's a problem, when I press 4 the demon is supposed to disappear. (Well it does, but when I press 4 again, the demon pops up again and it disappears, it's supposed to pop up once and disappear once.) Any help like, how to stop the sprite script after I press 4 once? I would appreciate some help here.  smile

Last edited by Ilikecake112 (2009-10-07 17:31:17)

Offline

 

#2 2009-10-07 18:15:45

The-Whiz-test
Scratcher
Registered: 2009-09-03
Posts: 30

Re: So I'm trying to make a game...

Try this script:

Code:

[When flag clicked]
[wait until <key [4] pressed?>]
[hide]

Or:

Code:

[When flag clicked]
[forever]
[][if <key [4] pressed?>]
[][][hide]
[][][stop all]
[][/if]
[/forever]

I'm The-Whiz's test account.
http://i653.photobucket.com/albums/uu259/The-Whiz_photos/Picture40.png

Offline

 

#3 2009-10-07 18:22:17

Ilikecake112
Scratcher
Registered: 2009-10-07
Posts: 3

Re: So I'm trying to make a game...

Okay, thanks for the help!  big_smile

Offline

 

#4 2009-10-07 19:20:31

The-Whiz-test
Scratcher
Registered: 2009-09-03
Posts: 30

Re: So I'm trying to make a game...

I'm looking forward to the game.


I'm The-Whiz's test account.
http://i653.photobucket.com/albums/uu259/The-Whiz_photos/Picture40.png

Offline

 

#5 2009-10-07 20:27:58

Ilikecake112
Scratcher
Registered: 2009-10-07
Posts: 3

Re: So I'm trying to make a game...

Yeah but I don't know if it will end up good. I'm kind of young and this is my first attempt in making a scratch game. XD

Offline

 

#6 2009-10-08 20:40:55

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

Re: So I'm trying to make a game...

Well I'm kind of old and I remember being exactly where you are now. Yes, your brain does operate differently as you get older, allowing you to juggle ideas simultaneously as abstract thoughts so you can juggle more balls at once. But over time, nothing beats experience and that is what you are earning right now so keep at it! Fire away when you have a question. My biggest advice would be start small and easy. Once something is working correctly, go back and remake it fancy. Good luck!


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

Offline

 

Board footer