Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: IkariShinji on February 29, 2012, 12:01:43 am

Title: [Resolved] movements like old 2d beat'em up
Post by: IkariShinji on February 29, 2012, 12:01:43 am
(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...
Title: Re: movements like old 2d beat'em up
Post by: ForeverZer0 on February 29, 2012, 12:51:51 am
class Game_Player
  def move_up; end
  def move_down; end
end
Title: Re: movements like old 2d beat'em up
Post by: IkariShinji on February 29, 2012, 04:31:18 am
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...
Title: Re: movements like old 2d beat'em up
Post by: ForeverZer0 on February 29, 2012, 03:55:20 pm
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.
Title: Re: movements like old 2d beat'em up
Post by: Futendra on February 29, 2012, 04:35:13 pm
just edit the sheets, I did that to a project once, maybe have some RTP sprites editted, Ima have a look tomorrow
Title: Re: movements like old 2d beat'em up
Post by: IkariShinji on February 29, 2012, 08:29:30 pm
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...
Title: Re: movements like old 2d beat'em up
Post by: KK20 on February 29, 2012, 09:28:01 pm
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!
Title: Re: movements like old 2d beat'em up
Post by: 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!
Title: Re: movements like old 2d beat'em up
Post by: Futendra on March 01, 2012, 12:15:37 pm
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