I need to spawn an actor (event) to one square besides the Player how can I do this?
I found this script somewhere, but not sure how to implement it (the Call Script window is too small). Thanks for any help.
I found this script somewhere, but not sure how to implement it (the Call Script window is too small). Thanks for any help.
Code:
ev = RPG::Event.new(x, y)
ev.id = $game_map.events.size + 1
ev.pages = []
# Create a game event object using map id and ev value
event = Game_Event.new($game_map.map_id, ev)
event.through = false
# Set the event at ev.id to our event (include it in map)
$game_map.events[ev.id] = event
@index = ev.id
#$event_instance[ev.id] = event
#$game_map.map.events.keys.push(@index)
$game_map.map.events[@index] = ev
#print $game_map.events
# Map needs to be redrawn because a new event was added
$game_map.need_refresh = true
$scene.spriteset.add_additional_sprites