Make A Behavior that if you click on a wrong you lose

Anthony1

  • Posts: 68
Im wondering , how to make a behavior that if you click on a wrong item you lose the level ! Please help ! it would be appreciated.

Ryusui

  • Posts: 827
Just take the tools at hand and apply a little logic.

Attach a behavior to the wrong item that triggers the lose condition if clicked - displays a "Game Over"
message, boots the player to a "Game Over" screen, or whatever you want.
In the event of a firestorm, the salad bar will remain open.

lazyboygames

  • Posts: 485
Just create a behavior that is like:

if (Mouse is clicked on [actor])
create actor at x,y

or if the game over is a different scene:

if (Mouse is clicked on [actor])
fade out and switch to scene then fade in

Anthony1

  • Posts: 68
Just take the tools at hand and apply a little logic.

Attach a behavior to the wrong item that triggers the lose condition if clicked - displays a "Game Over"
message, boots the player to a "Game Over" screen, or whatever you want.
Thank You for your help, also how can you make a Game Over Screen with a restart button, and a continue button.

Anthony1

  • Posts: 68
Just create a behavior that is like:

if (Mouse is clicked on [actor])
create actor at x,y

or if the game over is a different scene:

if (Mouse is clicked on [actor])
fade out and switch to scene then fade in
Your Help is greatly appreciated , do you put this behavior under the actor or what

Ryusui

  • Posts: 827
I gotta ask, is English your first language? Because all this is simple stuff that's well explained in the Stencylpedia and elsewhere.

Anyway. A "Game Over" screen should be set up as a scene, like any other interface. Stencyl has built-in behaviors for buttons, so use those.
In the event of a firestorm, the salad bar will remain open.

lazyboygames

  • Posts: 485
Yeah I agree with Ryusui. You should look through the stencylpedia. It helps a lot. Also yes you would attach that behavior to the actor that is the one that will cause the game over screen.

Anthony1

  • Posts: 68
I gotta ask, is English your first language? Because all this is simple stuff that's well explained in the Stencypedia
Yes, it is! I respond well by examples not reading lol .

Yeti Ball

  • Posts: 101
I gotta ask, is English your first language? Because all this is simple stuff that's well explained in the Stencypedia
Yes, it is! I respond well by examples not reading lol .

 ::)

Water Drop Game
Check out my new game on the Stencyl Arcade (UPDATED June 21st!).
http://www.stencyl.com/game/play/13158
Don't forget to comment and rate! :D

SWATLLAMA

  • Posts: 1059
Read stencylpedia and do the examples.
Hail The Llama
http://www.kongregate.com/accounts/lSWATLLAMA
"Play the games" ~ The Grand Llama

It's my life goal to rickroll as many people as possible

Anthony1

  • Posts: 68
love your game Yeti Ball

okay, i didn't know they had examples . thanks swatllama

Yeti Ball

  • Posts: 101
Thanks Anthony, glad you like it.  I should have a update addressing some of the current problems up today. 

I wasn't trying to be a jerk, but like SWATLLAMA said, Stencylepedia is full of tons great examples.  There are even a bunch of video examples for people who "don't respond well to reading"  ;)

Water Drop Game
Check out my new game on the Stencyl Arcade (UPDATED June 21st!).
http://www.stencyl.com/game/play/13158
Don't forget to comment and rate! :D

Anthony1

  • Posts: 68
Thanks Anthony, glad you like it.  I should have a update addressing some of the current problems up today. 

I wasn't trying to be a jerk, but like SWATLLAMA said, Stencylepedia is full of tons great examples.  There are even a bunch of video examples for people who "don't respond well to reading"  ;)
Thanks for your concern, i knew you weren't being a jerk but just helping a fellow stencyler . Also, im releasing a beta testing game for all developers who would like to elaborate or help me with the game.

SWATLLAMA

  • Posts: 1059
o_O Fine, I'll be in it. I've nothing else to do. I'm usually bored. D:
Hail The Llama
http://www.kongregate.com/accounts/lSWATLLAMA
"Play the games" ~ The Grand Llama

It's my life goal to rickroll as many people as possible