Charas-Project

Game Creation => Requests => Tutorials => Topic started by: zuhane1 on December 23, 2007, 12:06:53 PM

Title: Event location placing.
Post by: zuhane1 on December 23, 2007, 12:06:53 PM
Hey everyone. I just wanted to know if there is some way to place an event somewhere during the game and make them stay there forever. For example, if I played a hut down in the map and then left the map and came back could I make it stay there? I'd like to add a slight hint of C&Cness to my game. Is this possible? Thanks!
Title:
Post by: Rikou on December 23, 2007, 06:01:06 PM
If you just want it to appear everytime you go there, and you don't place it in-game yourself, then just use switches.

If you placed the hut there in-game and want it to stay there, well, that involves alot variables, too.
Title:
Post by: zuhane1 on December 23, 2007, 06:14:21 PM
Yeah I need the second option. I want it so you can build a base and stop enemies pouring through with different means.
Title:
Post by: Rikou on December 23, 2007, 06:34:19 PM
Hm.. I made a game awhile ago that has a custom menu, and when you exit it you go straight back to your previous position...

Okay, this is what I put in for the custom menu:

Variable Oper:[0001:Stored Spot] Set, Hero Map ID
Variable Oper:[0003:X Pos] Set, Hero X Coord.
Variable Oper:[0004:Y Pos] Set, Hero Y Coord.
Memorize Location: [0001], [0003], [0004]

You could switch Hero with the map event of the hut, but it's a bit difficult; I only barely got it down from Devil Hunter: Seeker Of Power. T_T

I'm still a novice myself (I might be underestimating, but I don't really care), so i'm not exactly proficient with positioning variables. If I find out anything else helpful, i'll do my best to provide you with the info!  :happy:
Title:
Post by: DragonBlaze on December 24, 2007, 01:25:58 AM
Basically what he said, but instead of memorizing the heros possition, memorize the possition of the event. You can do this with the variable options. Then put a parallel process event on the map, and have it use the "change event possition" command. In the change event possition command, select the option "location referenced from variables", and use the two variables that you memorized earlier.
Title:
Post by: zuhane1 on January 06, 2008, 09:31:02 PM
Thanks everyone, I'll give it a try!