Tap Question
Alright, I have a problem:
Actor 1:
-When touch is pressed, change attribute wrong to true
-When game.wrong is true, reset scene
Actor 2:
-When touch is pressed, change image
Actor 2 is on top, or in front, of Actor 1. However, when I touch Actor 2, it should change image, but it doesn't. The scene resets. Anyone know how to make it not do this?
Actor 1:
-When touch is pressed, change attribute wrong to true
-When game.wrong is true, reset scene
Actor 2:
-When touch is pressed, change image
Actor 2 is on top, or in front, of Actor 1. However, when I touch Actor 2, it should change image, but it doesn't. The scene resets. Anyone know how to make it not do this?
Comments
...and then in the Otherwise section place the two rules you listed above.
It's a Mac Creator file. Are you using Mac or Windows Creator?
Okay, I think I understand what the issue is. You want your reset actor (actor 1) to only reset if the player taps/clicks on the part of actor 1 that is not overlapping with actor 2... is that correct? If so, you really need to make a "mask" actor that is invisible (self.color.alpha=0) but that handles the scene reset and is not overlapping with actor 2.
If I'm still not getting it, perhaps you can explain a bit better about why you have overlapping actors.
http://i.imgur.com/aJnr1NM.png
http://i.imgur.com/1CMTp6Z.png
Exactly! How would I go about making this "mask"?
The problem by the way -- which you've probably realized by now -- is that layers in GameSalad do not prevent touch recognition. So just because something is in front of something else, it doesn't mean it blocks touch rules on the actor behind.
If the player makes a mistake, does Actor 2 need to change its image even though the scene is going to be reset immediately?
If you'd like, you can send me a link to download your project file (please .zip it first) and I can take a look. Sometimes these forum exchanges are efficient but other times it's a lot quicker to see the code.
I may need to resume this in the morning, but I'm happy to help!
So yeah, PM me a link later and I'm sure I'll see what you mean.