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,573
Reaction score
6,503
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,573
Reaction score
6,503
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,034
Reaction score
13,670
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,034
Reaction score
13,670
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,317
Reaction score
8,516
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

A friend requested me to do a pfp for his twitch channel, so far he approved one of my sketches, so going to digital now. The style he's looking for is quite different from my usual, hopefully I can get it right... :kaoback:
I am so hyped! A new post update and im anxious to see reactions..eeeeeeee
When a youtuber plays your project or game made by you using MAKERs, you will just be awe struck
Ok... so working on the official game guide for my game and its more than 150 pages...... wow. Well, I hope it will help a few players out.

Forum statistics

Threads
105,478
Messages
1,013,999
Members
137,117
Latest member
Deli
Top