|
Post by Xenith on Jul 21, 2004 20:04:58 GMT -5
i seemed to have run into a problem, when i leave a room and come back for some reason there is a second instance of him, is this perhaps caused by switching on the persistent thingy?
|
|
|
Post by dwmitch on Jul 21, 2004 23:32:58 GMT -5
I would like to note that according to my experiments with assigning creation codes after placing the object in the room that the creation event given to the object in the object editor overrides the event given to the object in the room editor.
|
|
|
Post by Bobop10 on Jul 22, 2004 20:04:08 GMT -5
ok ism it dont work i mean the door watch
i put room_goto(myroom) in my collision event
i put myroom = stock in the creation code for my door
now when my hero collides with the door
a error message appears and says that it is an unkown var
wat the deal?
|
|
|
Post by Xenith on Jul 22, 2004 21:01:59 GMT -5
did you put it in the door object and not your character? did you define the variable in the create event?
ism's on vacation right now, so he might not be able to help you but i'll see what i can do
to ism, i've found out that the cause of my problem is when i attack, i'll post whether or not i could fix it,
|
|
|
Post by bobop10 on Jul 22, 2004 21:58:20 GMT -5
actually i just figured it out see wat i did in the collision event with the door i put
room_goto(myroom)
thats wrong it should be
room_goto(room_index)
then in the creation code for the door i put
room_index = room
see there is no such thing as myroom so you need to mmake it the index
p.s. hey do you got a good turn based battle system i can look at?
|
|
|
Post by bobop10 on Jul 22, 2004 22:00:29 GMT -5
o btw you dont need to define myroom just use room_index it works too
|
|
|
Post by dwmitch on Jul 22, 2004 23:42:45 GMT -5
Just to be safe, it might be best to determine the maximum number of exits you'll need in one room and create an object for each one. That way you can have them color coded, and you can still use the same six or however many for every exit you need by setting the creation event in the room editor.
Also, according to the gender icon Ism is a girl/woman. Seems to have been some confusion about that, so I thought I would clear that up. I thought she was a he at first, too.
|
|
|
Post by Xenith on Jul 23, 2004 1:02:58 GMT -5
ism's a girl? i can't really tell anyone's gender when i'm on th net, and to bobop i'm not sure what you mean by turn based, do you mean turn based battles like final fantasy or do you mean turn based like final fantasy tactics?
the answer to both of them is no, but i could probably try to make one, but i don't have the time so it might come out late
|
|
|
Post by megamushroom on Jul 23, 2004 17:26:14 GMT -5
turnbased is easy, does everyone overlook shad0ws example?
|
|
|
Post by IsmAvatar on Jul 24, 2004 12:20:56 GMT -5
Just for some more clarification, this is my first post in this thread. I don't know why you started referring to dwmitch as Ism...
And the reason behind the confusion of my gender is because I kept it a mystery for so long, never letting anyone assume my gender. I let people find out in their own time.
Back on topic, the reason IS the persistency of the character. This causes the character to later double back on the room, still existing, and then finding that since the room also decides to create an instance of him (based upon the persistency of the room determines stuff like if he was destroyed before you left, which might help prevent this), hence making a second instance of him. To fix this, simply make a room that only lasts for 1 step, it creates the character. Then never put the character in any later rooms.
|
|
|
Post by bobop10 on Jul 25, 2004 0:55:21 GMT -5
where is shadows example? its not in the resources
|
|
|
Post by Xenith on Jul 25, 2004 3:02:52 GMT -5
back from your vacation already ism? anyways for more clarification you did post on this thread but not on this page, cuz you're the one who answered it for me, well if you're female, that probably explains why you're smarter than me, but if you were a guy i'd think i bet you'd be smarter than me anyways,
and about that turnbased thingy, i believe that if you cannot find it here go check out the gm forums
|
|
|
Post by IsmAvatar on Jul 25, 2004 14:22:28 GMT -5
If it's not in resources, try Snippits of Code. I'm back from vacation exactly the date I had expected to get back. I forgot about the first page I know a heck of a lot more not because of my gender, but because of my ideals, maturity, and also the fact that I've read the manual and tutorials a few times through... lol.
|
|