[RESOLVED] Moving events

Started by Dweller, August 18, 2010, 06:45:08 am

Previous topic - Next topic

Dweller

August 18, 2010, 06:45:08 am Last Edit: August 18, 2010, 03:48:57 pm by dwellercoc
Can someone tell me how can I move an event using code?

Dwellercoc
Spoiler: ShowHide

Shining Riku

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?

G_G

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

Dweller

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.
Dwellercoc
Spoiler: ShowHide

Shining Riku

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...

Dweller

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.
Dwellercoc
Spoiler: ShowHide