So I'm sure the answer is easier than I'm making it, but I'll reach out just in case.
I have a rock that floats down what is essentially a river. Then, when it gets to the bottom of the screen it disappears. I then want it to reappear it it's starting position and start all over, giving the impression that rocks just float down this river if you see what I mean. Thanks for any help!
The easiest way to do this is when the rock gets to the bottom of the river, turn transparent ON and through ON in the move route, then set the move route to move it back to the start. Turn transparent OFF and through OFF, and the rock will appear to be at the start of the river.
If it appears to take too long to get back to start, you can increase the movement speed and frequency when it is transparent, then change it back to what you have once it is back at the starting point.
I thought of that too bgillisp, but suffice to say that there are other factors that prevent me from using that strategy. I'm gonna try Celianna's method and report back. Thanks!
Edit: Will this method work if I need the event to react when touched by the player? It seems I need to set it to parallel process, but I'm not sure how I could make that happen. I've only got two points where the player could interact with it, perhaps the rock itself could have a parallel process event and then two invisible events that call the reaction if the rock is at those points (using variables again) and the player touches it. Let me try some things
Edit 2: Okay, an even easier fix! Using what was essentially bgillisp's method I figured it out. Instead of moving it back there though, I made it jump back to the starting point (while transparent) that way the character has no chance of accidentally interacting with it while it's invisible, and it moves faster. Thanks guys!
Edit 3: Well that was almost it...for some reason now the event doesn't move if it's off screen...
Edit 4: Alright, fixed that (really should have looked a bit more before all these edits...but at least now if somebody else has the issue they'll know what to do). I had to change line 88 of Game_Event to:
if @stop_count > stop_count_threshold
Works perfectly now! Marking as solved.
You could use Celianna's method but in an autonomous move route so you don't have to have the event set to parallel process.
Set your custom move route as follows:
Move DownScript: moveto(15,0) if @x == 20Change the 15 and 0 to the coordinates you want to move it to, and the 20 to whatever the lowest row is (remembering, of course, that they start at 0).
Then you can set the event to Player Touch or Event Touch for your interaction when colliding.