Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Anubis_Soldier on November 07, 2006, 12:29:36 AM
-
Is it possible to store the position of an Event?
-
Yeah it can be done, but I canīt really remember how, I think it was Store Event ID or something.
Gotta check it...
-
"Store Event ID" does just that, it does not memorize the Location of the event, just the Event itself
Meiscool is good at scripting, maybe he knows how,
-
With Variables, it is possible.
-
I understand variables,
mind explaining how i might accomplish my goal?
-
Use Event X and Event Y varibles.
Then, to move the event to the X and Y cord, use the command "Teleport Event".
-
Is there a way to activate a switch, have the Event Move and then have it record its current position such as
Activate switch
>Move Event: Event, Move Random
>Memorize Position of Event
And also is there a way to make an Event Walk to a location?
-
Well, as said before: use variables.
Let's name your event 'Event1'. Now make two variables 'Event1X' and 'Event1Y'. Set 'Event1X' equal to Sprite->Event1->X Coordinate. Now this variable represents Event1's X coordinate. Do the same with 'Event1Y' but then Y coordinate.
Now you should know the exact location of the event. If you make it a parallel process, the event will keep registrating Event1's X and Y coordinates.
And to make the move to a certain location...I'm afraid you'll just have to use 'Move Event' or 'Change Event Location'.
-
Thanks to you SilverBlade i solved my problem... Now i have to figure out some way to make enemies move towards an event. I tried centering the Hero on the event but the Enemy Move Towards hero is not very smart
PS. does anyone know of a good TBS (Tactical Battle System) for RM2k3?