ZFGC
Resources => Coding => Topic started by: litium on June 26, 2006, 12:25:01 am
-
well i'm trying to make a code taht when links enter to a house a variable called global.house gets a value (a identifier to know where to links have to start when he exits)
but i cant figure out how to do the creation of link code, any help?
-
Do you create Link via code in each room? Or have you placed an instance of Link in each room? Or do you have a persistent Link?
Either way, you can do this in the Room Creation Code. In the House room's RCC, set global.house to whatever value means he's in the house.
Then in the Outside room's RCC, check if the variable equals that value, and if so, do either:
instance_create(x_pos, y_pos, objLink)
If a Link doesn't already exist in that room, or:
objLink.x = x_pos
objLink.y = y_pos
If Link already exists or is persistent.
The x_pos and y_pos should be changed to the position you want Link to appear at.
-
Lol Litium, don't want to use mine? You can if you want lol.
-
i alredy figured it out, i make an object that creatres link using diferents values so if global.house_linkhouse=true link starts on thee xit of that house and if global.house_npchouse1=true starts on that exit
-
Retro urs don't even work.
-
http://www.kousougames.co.uk/stuff/Overworld.zip
Yay.
Probably doesn't help anyone.