I wasn't sure which forum I should post this in, if it's wrong, I'm sorry but I'm having serious trouble with making these types of puzzled. I have a puzzle where you have to push teddy bears onto
spots on the floor that match their colors. I can't get that to work. I tried event touch, but found out the hard way that it means when the event touches the player, not another event. I also need it for a boulder that I'm using to block a monster from killing my character. I need to do the same thing for both, but I don't know how. I haven't found anything similar either. Please, if you know what I'm doing wrong help me fix it.
Tech Support is for getting the editors to run, not for help developing a game.
I've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
That said, you cannot use event for both the moving part and the target ground - because events block other events unless they're through (in which case they can't interact and pass walls as well.
You'll need to use either region IDs or coordinate numbers to identify when an event has reached the correct spot.
There are different ways to do this, you should search the main blog (not the user blogs of the forum) for a tutorial on moving puzzles. There might be other tutorials here in the forum as wel, but I remember one is on the blog.
Pseudo Eventcode:
Set Move Route: Turn away from Player and Move one Step. (Skip if Cannot Move must be marked and Wait for Completion)
Control Variable 1 and 2 - Game Data - Charackter - This Event - Map X and Y
Get Location Info - Region (for example) use Variable 1 and 2 as coordinates and use Variable 3 for the Region ID on the target Location.
Conditional Branch Variable 3 is same as 9 (Cause it needs to be on Region9 in this example)
Conditional Branch Self Switch A is OFF
Control Self Switch ON
Do your Event stuff like Sounds and stuff here.
ELSE case of condition:
Conditional Branch Self Switch A is ON
Control Self Switch OFF
In this case the Event got pushed of the Spot he has to be on.
Deactivate stuff you maybe created if needed.
This solution would allow for example to push the events on something to Open a Door, but they would also Close the Door as soon they are pushed away from the Door Open spot.My English aint the best in explaining complicated stuff, but i hope it helps getting started.
Edit: Other PSeudocode for direct Map Coordinates:
Set Move Route: Turn away from Player and Move one Step. (Skip if Cannot Move must be marked and Wait for Completion)
Control Variable 1 and 2 - Game Data - Charackter - This Event - Map X and Y
Conditional Branch Variable 1 == 5 (MapX)
Conditional Branch Variable 2 == 8 (MapY)
If yes than
Do your vent stuff here.
than Turn Self Switch A ON
Dont forget to Create a seccond Eventpage with Self Switch A as Condition (Or use normal Switches if needed)
Thisway its with direct coordinates and only to push it into correct location one Time.
Ahh, while Map is reloading so do Eventpositions, but therefor also existing workarounds if needed.
There is also a script which allows event's to interact with one another, Custom event triggers by Tsukihime. it takes a bit of work, however You wouldn't have this game if You weren't in it for the work.
I wrote a tutorial for a puzzle like this for Ace - search for it in the Tutorials (Ace) forum. The difference is that puzzle gets you to push boulders onto certain tiles, but it doesn't matter which boulder goes onto which tile so they're interchangeable. You could certainly use it as a starting point, but instead of one region id, use several (one for each coloured bear), and you'll probably not be able to do the check in a looping script - just use event commands to get the location of each bear and the region id, and see if the region id is correct for that bear.
I already told you exactly where it would be (VX Ace Tutorials forum). You can search for it as easily as I can.
I suppose you can use regions and then change the priority of the tiles once the teddy bears are in that region. I had to do the same thing for a similar puzzle.