PDA

View Full Version : isometric game, doors?



Wraithman
December 19th, 2004, 06:44 AM
Hi,

I've been studying this isometric view game...and I was wondering how to make doors, unfortunately I'm not experienced enough to try and create a script that will actually work, so if anyone of you can help me please do :)

I added the fla. file which I'm currently studying

RyxiaN
December 19th, 2004, 07:11 AM
to make doors?? hmm.. that is not very hard, right? Create a new MC and name it door... make two frames... one with closed and one with open... then you put the door on your map... and you make a hitTest script maybe like this:


Code:

onClipEvent(enterFrame){
if (_root.guy.hitTest(this)){
gotoAndStop(2);
}
}
something like that but this code isn't good i think... try it and experiment.. maybe you find out...

EDIT: and of course the door must include in that part that is unwalkable

Inferno
December 19th, 2004, 08:49 AM
wtf is unwalkable? :D

Wraithman
December 19th, 2004, 01:24 PM
to make doors?? hmm.. that is not very hard, right? Create a new MC and name it door... make two frames... one with closed and one with open... then you put the door on your map... and you make a hitTest script maybe like this:


something like that but this code isn't good i think... try it and experiment.. maybe you find out...

EDIT: and of course the door must include in that part that is unwalkable
Thank you for your help, but if the answer to my question was that easy I wouldn't even think of posting my question.
I already tried what you suggested, and it didn't work.
Assembling a door is way harder than just that.
Besides that, I want the map to change once the user encouters the door, that is to say, make the current map change from Map1 to Map2 and if that's not complicated enough, I need to have all of that in isometric view :P

as said before, if anyone experienced enough can help please do!

Thanks in advance

RyxiaN
December 19th, 2004, 01:57 PM
okay... sorry then.. i don't know..