Enabling events

jlorencelim

  • Posts: 3
Hi,

I'm kind of new in stencyl and I'm trying to make a hidden object game.

My concept is that not all objects cannot be clicked yet. You still have to click on a certain object before you will be able to click another.

For example, there is a blade and a box. When the scene is created, I cannot click the box yet but only the blade. After I have found and clicked the blade, I will now be able to click the blade.

Is a way to enable the click event of the box after I have clicked the blade.

Thanks  :)

« Last Edit: June 12, 2013, 08:02:30 pm by jlorencelim »

Yodigi7

  • Posts: 16
What you can do is create a game attribute of "Items found". You can then set it to a default value of 0. The behavior can go something like this. When actor "blade" is clicked on then set "Items found" to "Items found" plus 1. Then the behavior for the box can go something like. When actor is clicked on, if "Items found" equals 1 then... This will cause the box to do nothing until the blade is found.
~Tony :)

Yodigi7

  • Posts: 16
If you want a partner in making your game I will be willing to help out.
~Tony :)