Replace H&V movement with diagonal movement

Status
Not open for further replies.

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Hello!
I need help modifying how the movement system works. What I want is to replace the horizontal and vertical movement, with ONLY diagonal movement.

This being:
UP = UPPER_RIGHT
LEFT = UPPER_LEFT
RIGHT = LOWER_RIGHT
DOWN = LOWER_LEFT

There are tons of scripts to add diagonal movement, but not to change it to only diagonal.
Is there a way to change the basic system of VX Ace so it affects both player and events?

Thank you so much for your help!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Are you planning on using isometric map? Or are you still using vertical / horizontal grid perspective like default?
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
I'm sticking with the V/H grid perspective but with a parallax map to give the isometric feel.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
That way you will never reach some certain grids. Are you sure about that?
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
You're right, it will be like the bishop in chess.
Is there other way to acomplish this? I was going to use an isometric engine called Layy Meta Engine, it comes with Gubid's Tactical Battle System. But it doesn't look right at all, the screen shakes when walking and it doesn't have a light and dark system to give the maps the right feel.
Dou you by any chance know of a script to rotate the camera in a isometric perspective?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I haven't tested this, but give it a go ... in a new slot, above Main.

Code:
class Game_Player < Game_Character
  def move_by_input
    return if !movable? || $game_map.interpreter.running?
    case Input.dir4
      when 2: move_diagonal(2, 4)
      when 4: move_diagonal(8, 4)
      when 6: move_diagonal(2, 6)
      when 8: move_diagonal(8, 6)
    end
  end
end

If there are problems as mentioned above, you can just remove it again.
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Thanks @Shaz , but i'll keep searching for an alternative. I'll need a script to rotate the camera or make the maps isometric. Do I have to change the title of the thread, or keep it?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
If you are now searching for something different, you should probably ask for this thread to be closed (by reporting your first post) and create a new one.
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Thanks, I'll do that.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top