1. temporary flashing. 2. touch on whole screen
efish
Member Posts: 40
Hey!
I'm currently having two problems in my game-creation:
1. I have and actor going back and fourth along the X-axis. This actor has to be stopped at a specific place on the screen. If it is stopped at the correct place, the actor stops and spawns a new actor. If it is NOT stopped at the correct place I want it to flash temporarily for 1 sec. This is where I am stuck.
I have tried using a timer and changing the alpha of the actor with integer function, but I can't get it to work properly. It fades out, but never fades in again.
2. Same game. For stopping the moving actor I want the player to be able to touch anywhere on the screen to stop it. I have therefor made a rule that states if Any: touch inside or outside.. This works pretty well, but the problem I'm having is that it is possible to 'cheat' by just pressing and holding the screen until the actor hits the correct place. Basically what I want it to do is if you have pressed (inside or outside of the actor), the press should be cancelled right away.
Thanks!
I'm currently having two problems in my game-creation:
1. I have and actor going back and fourth along the X-axis. This actor has to be stopped at a specific place on the screen. If it is stopped at the correct place, the actor stops and spawns a new actor. If it is NOT stopped at the correct place I want it to flash temporarily for 1 sec. This is where I am stuck.
I have tried using a timer and changing the alpha of the actor with integer function, but I can't get it to work properly. It fades out, but never fades in again.
2. Same game. For stopping the moving actor I want the player to be able to touch anywhere on the screen to stop it. I have therefor made a rule that states if Any: touch inside or outside.. This works pretty well, but the problem I'm having is that it is possible to 'cheat' by just pressing and holding the screen until the actor hits the correct place. Basically what I want it to do is if you have pressed (inside or outside of the actor), the press should be cancelled right away.
Thanks!
Comments
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
That was what I did in the beginning. The problem with that is that I can't specify 'inside' and 'outside', ergo not the whole screen. Is there a way around this?
- Alex