Hi to everybody,
Someone can help me to understand how to move my npg during a loop?
The situation is that one on the attached "rpg.png"
In that case the guard turn in clockwise. The goal should be not be catched from the guard in the while our hero pass around him.
For example as you can see on the picture there is an event just below the guard.
- So I create an event with trigger event touch when is below the character.
- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- repeat
When I touch the event my hero-png movement are blocked untill the end of the process and I can not go away to prevent the game over.
Easy to fix. Infact I just add the option "If not" on the conditional branch and add there "break loop" like this:
- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- If not -> Break loop
- repeat
Now my character is able to move. But here is the problem...If I decide to activate the event when the guard don't look down, at the moment he turn down he will not catch me. This because is supposed that the event doesn't work constantly. But work only in case i touch the event when the guard look down.
Who never play to one of the pokemon game for Game Boy? My intention is to create a situation like the pokemon trainer, when they turn around and you are able to skip them, or wait untill they look at you and stop you.
I can not understand how can make work this two conditions at the same time. An help should be super appreciated.
Sorry for my english.
Regards
Luca
Someone can help me to understand how to move my npg during a loop?
The situation is that one on the attached "rpg.png"
In that case the guard turn in clockwise. The goal should be not be catched from the guard in the while our hero pass around him.
For example as you can see on the picture there is an event just below the guard.
- So I create an event with trigger event touch when is below the character.
- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- repeat
When I touch the event my hero-png movement are blocked untill the end of the process and I can not go away to prevent the game over.
Easy to fix. Infact I just add the option "If not" on the conditional branch and add there "break loop" like this:
- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- If not -> Break loop
- repeat
Now my character is able to move. But here is the problem...If I decide to activate the event when the guard don't look down, at the moment he turn down he will not catch me. This because is supposed that the event doesn't work constantly. But work only in case i touch the event when the guard look down.
Who never play to one of the pokemon game for Game Boy? My intention is to create a situation like the pokemon trainer, when they turn around and you are able to skip them, or wait untill they look at you and stop you.
I can not understand how can make work this two conditions at the same time. An help should be super appreciated.
Sorry for my english.
Regards
Luca