Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Dweller on August 18, 2010, 06:45:08 am

Title: [RESOLVED] Moving events
Post by: Dweller on August 18, 2010, 06:45:08 am
Can someone tell me how can I move an event using code?

Title: Re: Moving events
Post by: Shining Riku on August 18, 2010, 11:13:15 am
Why do you need code? No offense but I think that'd make it a whole lot harder.

I don't know if such a code exists, but then again i'm not script savvy.

Like I was saying though, any particular reason you need code instead of eventing it?
Title: Re: Moving events
Post by: G_G on August 18, 2010, 11:35:45 am
He might be making a script or something. Try somethign like this
$game_map.events[event id].move_up

move_up
move_down
move_left
move_right
Title: Re: Moving events
Post by: Dweller on August 18, 2010, 03:47:44 pm
Quote from: game_guy on August 18, 2010, 11:35:45 am
He might be making a script or something. Try somethign like this
$game_map.events[event id].move_up

move_up
move_down
move_left
move_right


Thanks, I was looking for:
$game_map.events[event id].moveto(x, y)


your info guided me into the right way.

Quote from: Shining Riku on August 18, 2010, 11:13:15 am
Why do you need code? No offense but I think that'd make it a whole lot harder.

I don't know if such a code exists, but then again i'm not script savvy.

Like I was saying though, any particular reason you need code instead of eventing it?


My event position depends of global variables. I need to assign the global variables to event variables to move them (eventing). Now I can move the events without that step.
Title: Re: [RESOLVED] Moving events
Post by: Shining Riku on August 19, 2010, 12:55:13 am
I think I see what you're saying. That's really cool stuff

I hope it works out!

and sorry I wasn't any help  :P
my specialties are just eventing...
Title: Re: [RESOLVED] Moving events
Post by: Dweller on August 19, 2010, 06:39:27 am
Quote from: Shining Riku on August 19, 2010, 12:55:13 am
I think I see what you're saying. That's really cool stuff

I hope it works out!

and sorry I wasn't any help  :P
my specialties are just eventing...


Yes it works, also I change all my global variables to global arrays, saved a lot of time.