Actor not behaving the same after moving?
I have an actor that is sort of like a button in that when you press it something within the game happens, but for some reason if I change its location within the scene it stops working. Also, I have duplicates of this same button in the scene and they do not work unless the first one i made is pressed first. Once the first one is pressed then all of the other ones begin to work and this is not intended. Has anyone ever had this problem before?
and as another note, if i try to delete all of the instances of that actor within the scene and put a new one in it just doesn't work at all.
and as another note, if i try to delete all of the instances of that actor within the scene and put a new one in it just doesn't work at all.
Comments
would suggest:
- a gameAttribute Index type: button#
on button prototype an actorAttribute Index type: my# … set the values in the actorInstances
Rule: when
Event: touch is pressed
--changeAttribute: button# To: self.my#
on your active actors that you want to respond to the buttons
Rule: when
Attribute: game.button # = 1
--do this;
Rule: when
Attribute: game.button # = 2
--do that;
etc.
@};- MH
EDIT: well tell us what caused the problem (how you figured it out) … so we can avoid the mistakes!