Jump to content
Sign in to follow this  
orathan

Character turns before moving

Recommended Posts

The default movement in VX Ace is that when UP (or LEFT/RIGHT/DOWN) is pressed (even when the player is facing DOWN) it moves up without even turning upwards. What I'd like to do for the character is turn on my first move-key-input and when pressing another move-key where the character is facing only then will it be able to move to that direction. There's bound to be a script like this but I prefer to do it via eventing (if "and only if" possible).

I've tried eventing it myself but 90% of the time the movement overrides the "turn move route" that I put for the player.

 

Can the movement be overridden by a script call?

Share this post


Link to post
Share on other sites

Moved to script requests.

 

I have seen a couple of scripts written that do movement that you describe. I'd check out the master script lists to try to find them

Share this post


Link to post
Share on other sites

I was hoping that it can be done via eventing...

Oh well.. I guess I'll have to resort to using scripts.

Share this post


Link to post
Share on other sites

The problem is at default, the system automatically moves your character one tile in the direction the key is pressed. You might be able to try something with common events that tells the program if a key is pressed to first check if the character is facing that way. If they are not, then turn them that way; if they are, then continue in that direction.

 

However, you would need to code this in for every direction the character can move, and ensure that it only effects character movement when they are on the map and doesn't impact cursor movement in the menu and in the battle screen.

Share this post


Link to post
Share on other sites

I've tried making an event exactly like that but as I have stated before, the character moves instead of turning 90% of the time.

 

Event:   @Conditional Branch: If Character is facing Down

                 @Conditional Branch: If button Up is pressed

                     > Move Route: Player(Wait)

                                         Turn Up

 

Something like that...

Share this post


Link to post
Share on other sites

because the script already take control the player and move them. so doing it with event will never work (i think).

you still need script.

Share this post


Link to post
Share on other sites

I use a script for this in my game. One thing to note though is that if you are already turned in the direction of the pressed button, you will move in that direction immediately without turning first. This is what I wanted. Also, if you hold a button, the player will turn and then start walking in that direction. You can edit the amount of time the button must be held down before movement by changing the options at the top of the script.

 

Anyway, I use the script by FenixFyreX in this post. I've made a couple modifications to it to suit my needs, but it should do what you're asking.

Share this post


Link to post
Share on other sites

You can try the script I made it mimics the Pokemon look then move action.  Get it here

 

The previous script suggestions also does the same thing but this one fits in perfectly for me. Simple -- that's one way to describe it, but this is what I need.

 

Thank you ^_^

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted