Once again I am in need of assistance!
Here's the thing, here is the concept I want to implement:
When you touch another event or let's just call it a monster, the monster will get hit and it will walk away from you temporarily. After that, it will snap out of it and will chase you again. You can then hit it again after a cooldown. I can manage this easily with switches and such and this only works if there was only ONE monster.
My problem here is, when I add more monsters, they will also receive the same treatment! They will somehow move away too and that's not what I really want. So let me explain this in a very detailed manner.
1. When you walk to the event and touch it, the event will get hit, so it shall walk away. Events that are NOT hit will continue to chase you and try to hurt you.
2. After a certain period of time, the event you hit earlier will snap out of it and continue to chase you.
3. After the cooldown is over, you can hit any other event again, and like Step 1, the ones that are not hit once again chase you and the one hit shall run away from you.
I hope anyone can find a simple solution for this.
Stun Skill
● ARCHIVED · READ-ONLY
-
-
Multiple pages and self switches.
-
Multiple pages and multiple switches? 0_0?
Can I have an example? Like, how would it work? -
Multiple pages and self switches.
If you don't know what they are, you should check out some beginner tutorials.
Is it a monster? What happens if it gets you? There's an event trigger for Player Touch which would cause it to activate when the player touches the event, and one for Event Touch which would cause it to activate when the player touches the event OR the event touches the player. If it's a monster though, wouldn't you want it to do some damage when it touches the player, or trigger a battle or something? You wouldn't want it to ALWAYS run away when it touches the player. As it is currently, there is no difference in the processing of an event depending on whether it was the player or the event that instigated the action. -
There is no battle or whatnot in the game, it's like a Pac Man styled game (Sort of)
So it's like the player has this barrier, so when a monster hits you or you touch it, it will be hit and it will walk off for 5 seconds. But you will be open to other monsters for 10 seconds. So there's a 5 second vulnerability period. Something like that.
I'll keep experimenting with self switches! XD I hope I can somehow get what I want.
EDIT: Ah, so it was all about the self switches! X3 The tutorial did help me XD Thanks :3 All I did was change the switch to self switch and boom it worked wonders! Great help, oh and go ahead and shut this down, question answered! :) -
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.