Move event until it touches something

● ARCHIVED · READ-ONLY
Started by Mozzer 7 posts View original ↗
  1. Hi,

    I've run into a bit of trouble while making a minigame for my game.

    This is the idea:

    By pressing the directional buttons, a marble rolls through a maze until it touches one of the walls. But after I made my first move when testing it, it blocks.

    The pieces of walls are passable tiles that can't be crossed on the side of the walls.

    You can see the event commands I used in the enclosed picture.

    Can someone help me with this?

    Thanks in advance,

    -Mozzer

  2. I don't use XP, but at first guess: a move that is set to repeat will never end, so that "wait for completion" will wait eternally...
  3. The problem is, if I don't use "wait for completion" the direction can be changed while the marble is still rolling.
  4. make the event use multiple pages, one page with the commands for each direction, and switch the parallel process off when a direction had been selected until the page for that direction detects the end of the move by other means (for example checking the passability of the next tile in that direction) and switches the controls back on.
  5. These are commands that aren't available in xp, only in vx (ace).

    Thanks for the help, but I've decided to arrange it differently, by having the player push the ball around, creating practically the same effect.

    This thread can be closed.
  6. I'm sure there are "sliding" scripts available for XP - I know we did something like this for one of the Aveyond games ... I don't recall if I scripted it or just used a parallel process event.
  7. It's okay, I already changed it to a push-system, and I actually like it better that way.

    Thanks anyway.