Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

f0tz! Baerchan's Pixelmovement Help!

I was reading the Help file and there's a bunch of stuff that I don't know how to use!


Here's what I don't understand how to use:

individual RGSS-Move-Commands / New Methods for the Game_Map/Game_Character Class:

tile_id(x, y, i = 0): new method of the Game_Map Class, returns the tileID of the tile with
the coordinates x:y and on the layer i

move_down(steps = 32, turn_enabled = true, again = true):
steps: the distance in Pixel
turn_enabled: shall the object turn if it can walk?
again: set this to true if the object shall try to move lower left/right if
the way is impassable
the Event-Move-Commands can be used like before (steps is always = 32)
(same for move_left, etc.)

Random-Route / Move-Towards-Hero-Route: more Pixel like, 8 directions

jump(x,y,height=5):
x: jump distance in x-direction
y: jump distance in y-direction
height: height of the jump (max 40, 5 is normal)

turn_toward_event(id)/turn_away_from_event(id):
turns towards/away from the event with id as its id

and looks_at?(id):
returns true if looks into the direction of event[id])

stay_in_range(id,d1=0,d2=640): distance between self and the event with id as its ID wont be
bigger than d2 and smaller than d1, id==0 means the Player
distance_to_event(id): returns distance to the event with id as its ID, id==0 means the Player

move_toward_event/move_away_from_event(id,steps=32): bewegt sich zum Event mit der ID id
hin/ von ihm weg

in_circle?(center_x, center_y, radius): returns true if the Char is in the circle
in_square?(center_x,center_y,radius): returns true if the Char is in the square
(radius = distance from the center to the border)
in_rect?(center_x,center_y,height,width): returns true if the Char is in the rectangle

moveto(x,y): uses exact coordinates

real_dir: returns the real direction the char looks at
(only useful if you use 4dir-graphics)

variable @move_speed is a real now, so it is more precise.

For instance, how do I use the variable @move_speed? He doesn't tell you how ;_;

Someone pelase help
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top