Hi guys!
I need a little help with something.
As the title says, i'm trying to make an event where the blonde maid asks the player to move some boxes
to a corner (because they are very heavy, help the girl hero).
I've got some scripts working that let the player drag/push the boxes around, but i don't know how can i get
the blonde maid event to thank the player, once all boxes are in any green area.
How can i make a trigger that recognizes that the boxes are touching the green area spaces?
[IMG]http://i.imgur.com/nad99IQ.jpg?1[/IMG]
you can't
There is no way for events to trigger other events, you need to either check them indirectly or use switches/variables to coordinate events.
In your case, I think it would be best if every box checks its own position after each move, when it's in the target area it should count a variable up (and down if it leaves the area after that).
And the girl gets a condition of that variable being three or above, so it will become active after all boxes are in position.
Look for my Sokoban tutorial. I think it'll do exactly what you need here. You're not making the same sort of puzzle, but your "success" condition (THESE events on THOSE tiles) is the same.
Thanks a lot guys!
I looked at your tutorial Shaz, and i think it is just what i needed.
I will try to use it right now!
So, i'm almost there but i'm still having a problem.
The "sucess" message is popping as soon as any one box is on the correct region id.
Here is a screenshot of the event.
Below the sucess message i have a Label:Fail created and a Wait: 5 frames, just like you suggest in your (awesome) tutorial.
Your tutorial is helping me a lot, i just need to fix this and i will be good to go!
[IMG]http://i.imgur.com/da17HQv.jpg?1[/IMG]
Your message is outside any conditional branches. So it always appear.
You need to check if the events are in the right position and only if so make the message happen, Canalha do Alto.
Oh, forgive me about that.
And you were right Shaz, i did not pay attention to that detail, i just modified the variables
for every box and it worked just like i wanted!
Thank you all for helping me, and special thanks to your great tutorial Shaz.
This topic can be closed, problem solved!
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.