[Resolved] movements like old 2d beat'em up

Started by IkariShinji, February 29, 2012, 12:01:43 am

Previous topic - Next topic

IkariShinji

February 29, 2012, 12:01:43 am Last Edit: March 11, 2012, 01:14:26 pm by IkariShinji
(First I would like to say I will be sorry for my English but I'm Italian please...)
I would like to ask if there is any script that make possible to walk and act like old 2d beat'em up, for example final fight. I mean the possibility to constrain the directions of charachters and enemies to left and right without showing or fighting the up/down sprites. Blizz-abs is very user friendly and I've already done a half complete game with this but the inability (mine or inborn of the system...) of doing this is making me reconsider the use of the XAS, please if there is any suggestions it will be appreciated...

ForeverZer0

class Game_Player
  def move_up; end
  def move_down; end
end
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

IkariShinji

I cannot understand the answer... Probably I'm not able to explain, I mean a script that when I press up or down the carachter still look to the right or left (according to the last direction it looks toward) and the enemies does the same and they always and act left and right. Don't you know final fight old game?
Sorry to say but what you've posted doesn't work it is just a definition for what is up and what is down...

ForeverZer0

It prevents up and down movement. Its really not the ideal way to do it, but meh. Why not just alter the sprite sheet to not have up down character graphics?

Or a simple edit to prevent turn_up and turn_down. It all has the same effect.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Futendra

just edit the sheets, I did that to a project once, maybe have some RTP sprites editted, Ima have a look tomorrow

IkariShinji

Thank for the answer, but I'll give an example:

1 - I press left and my charachter looks toward left, after I press up or down and my charachter still looks toward left and acts left (projectiles ecc.).

2 - I press left and my charachter looks toward right, after I press up or down and my charachter still looks toward right and acts right (projectiles ecc.).

And that would be for the enemies too!

I tried to prevent the turning inserting a script after blizz-abs but It did not work, I've also tried to found every turn up and down and changing left or right according to a new variable that I created to stores the direction the chara was looking for when someone press left or right. It did not work probably because I have not find them all or I miss something (i'm noob in rgss).

The result was that my charachter works almost well except when touching obstacles but my allies and enemies didn't work at all! I'm sure that you can find a solution probably in just one script, but I have tried changing so many lines off blizz-abs that I'm quite hopeless...

KK20

So I'm completely unsure if this is what was requested...
class Game_Character
  def turn_up
  end
  def turn_down
  end
end


Yay 100 posts!

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

IkariShinji

It works perfectly now! I cannot believe it was so simple, I feel so stupid to have bothered you... thank you so much you saved my little project!

Futendra

Quote from: IkariShinji on February 29, 2012, 11:14:31 pm
It works perfectly now! I cannot believe it was so simple, I feel so stupid to have bothered you... thank you so much you saved my little project!


I am curious to the game, it's been a long time that I ever saw a indie game like that