is it possible to make an event that keeps moving until it hits a wall?

David_Ribeiro

Warper
Member
Joined
Dec 9, 2019
Messages
1
Reaction score
0
First Language
portuguese
Primarily Uses
RMMV
hi,im trying to make a puzzle in my game where you have to push a ball that when you interact with it it keeps moving until it hits a wall and you have to push the ball into a button(kinda like the gooftroop snes game puzzles),so how could i do that? i tried to make a movement route that reapeats and that also skips if it cannot move but it didnt work
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
415
First Language
English
Primarily Uses
RMMV
Option A: Force a move route with like a hundred 'move lefts' and make them skippable, so it'll eventaully finish skipping them all

Option B: check to see if you're touching a wall after each movement using $gameMap.ispassable(this.x,this.y,directionYou'reTravelling) and flip a switch or something if it's no longer passable
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top