Display Text problem
EpicoreGames
Member Posts: 188
i have 10 actor which cannot be pressed , if the player presses the actors , then game over .
so i put :
when TOUCH is PRESSED
DISPLAY TEXT ( GAME OVER! )
but when i preview it , the words only show when my mouse is pressed , when i release the mouse then the words disappear what is the problem? and my main actor will spawn on these 10 actors and when i click on the main actor , the words appear too but then disappear again when i released my mouse .
I want to let the words keep showing even the press is released and i dont want the word to appear when i click on my main actor which spawns on them.
What should i do?
Comments
You have it set to "when touch is pressed, display text". So the reason why it is disappearing is because when you release the mouse button it is no longer pressed.
Make a boolean self attribute, lets call it "pressed".
Make a rule that says "when touch is pressed, change attribute self.pressed to true"
Then make a rule that says "When attribute self.pressed is true, display text "GAME OVER" "
Hope this helps.
Mental Donkey Games
Website - Facebook - Twitter
is it possible to change the boolean with change attribute behavior?
I've did what you said but it didn't work
...
...
Yes. That is how you change an attribute.
can you post a screenshot of the rules you made?
Mental Donkey Games
Website - Facebook - Twitter
deleted---
thanks for answering
the problem has been fixed .