Imperial_Steele

Villager
Member
Joined
Aug 22, 2021
Messages
14
Reaction score
5
First Language
English
Primarily Uses
RMMV
I want to give the Player Character an option to "trip" an NPC. The way I figured it is I make the Actor move aside, move the other character down, play a "walk" animation to make the PC look like they're sticking their foot out, then replace the 2nd characters' graphic with a "fallen down" image, complete with sound effect.

However, I've hit a snag. The 2nd character won't move down past the PC once they've stepped aside. I've attached the relevant code snippet; what am I doing wrong?

As an aside, how can I make the "walk" animation only happen once, instead of looping? I've taken it out of the example I'm attaching because I thought that was soft-locking the event, but, nope. Still not doing anything.

Edit: updated title to say "solved"
 

Attachments

  • TripGaryCode.png
    TripGaryCode.png
    38.1 KB · Views: 5
Last edited:

Htlaets

Veteran
Veteran
Joined
Feb 1, 2017
Messages
321
Reaction score
174
First Language
English
Primarily Uses
Presumably this is what you're going for (P for player character G for Gary in this case):
1:
G
P
2:
G
->P
3:
|
GP

But three isn't happening, correct? The fact that P can move means the tile should be passable. Which means the event should work. Still, try giving Gary through and see if that works?
 

Imperial_Steele

Villager
Member
Joined
Aug 22, 2021
Messages
14
Reaction score
5
First Language
English
Primarily Uses
RMMV
Well holy crap, that worked!

I had the event in the tile he couldn't move to, so that it would be triggered by the player. Since the player could move into/through it, it didn't occur to me that other NPCs couldn't.

Thanks!
 

Latest Threads

Latest Profile Posts

Sometimes it works out to not do work on my game for a while. I ran through a playtest today and got about a page of things to fix or improve...
I got lot's o balancing to do lol... I think I'll redo my skills for the 3 party members for the 5th time lol. but I need them to be more distinct for balancing the RPS element system since fights are 1 on 1 with tagging.
Our latest Make a Game in MZ Stream is here! Today, we're going to create a complex switch puzzle, where flipping one switch also toggles the switches adjacent to it. Join now to see how it's done!

Here's a preview to an upcoming free track. Kind of a hybrid, Middle Eastern, orchestral thingy. Should be released pretty soon!

Time: duration regarded as belonging to the present life as distinct from the life to come or from eternity; finite duration.


1653085842103.png

Me against Time now. No second chances. No distractions. All or nothing. Whoever wins is the best fighter.

Forum statistics

Threads
121,982
Messages
1,145,660
Members
160,257
Latest member
Rakadu
Top