Page 1 of 2
DOORS?
Posted:
Thu Nov 10, 2011 5:12 pm
by hunter84
i tried the tutorial ici made but in the global code it wont let me add because of errors? does anybody know how to make a door?
Re: DOORS?
Posted:
Thu Nov 10, 2011 7:39 pm
by lcl
Well, my door system works if yo use it right.
What code were you trying to put to global code and what were the errors?
Answer to those questions and then I will help you.
- lcl -
Re: DOORS?
Posted:
Thu Nov 10, 2011 8:16 pm
by hunter84
wait i might have mistyped something? ill try it again
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:10 pm
by hunter84
ok
error line 2: redeclaration of parameter 'actor'
error line 5: redeclaration of parameter 'GetClone'
error line 7: Misplaced return statement
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:18 pm
by RippeR7420
Its case sensitive... So try like "getClone" and/or "Actor".. I'm not sure though haha.
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:23 pm
by hunter84
nvm i fixed the problem to the first step but on the second step in the script editor i got a crap load of errors
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:26 pm
by lcl
I will help you with this tomorrow, it's quite late here.
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:27 pm
by hunter84
ok while your asleep ill be posting all the errors k? and tomorro you can help?
Re: DOORS?
Posted:
Thu Nov 10, 2011 10:35 pm
by lcl
hunter84 wrote:ok while your asleep ill be posting all the errors k? and tomorro you can help?
Yeah, sure
Re: DOORS?
Posted:
Thu Nov 10, 2011 11:04 pm
by hunter84
error line 2: undeclared identifier what
error line 3: undeclared identifier returns
error line 4: unexpected declaration returns
warning line 4: trying convert from '* char' to '* char Identifier'
error line 8: undeclared identifier next
error line 9: undeclared identifier next
error line 9: incompatible types: cannot convert from 'Identifier' to 'double'
Re: DOORS?
Posted:
Fri Nov 11, 2011 3:12 pm
by RippeR7420
What kind of door are you trying to make? Like one that takes the player to a different level, or a door that you need to hit a switch to progress in your game?
Re: DOORS?
Posted:
Fri Nov 11, 2011 4:41 pm
by hunter84
nevermind i downloaded the door demo on ICI's tutorial and looked at the script and changed my script and now there are no errors but in game mode when i try to walk in front of the door the player goes over the door.
Re: DOORS?
Posted:
Fri Nov 11, 2011 4:55 pm
by lcl
What do you mean with "going over the door"?
Note that you have to press the up key when at the door.
That can be modified to the key you want.
- LcL -
Re: DOORS?
Posted:
Fri Nov 11, 2011 5:47 pm
by hunter84
ok heres a example
player
actor
___
/door\
| |
=====
instead of going in front of the door he walks on top of the door
Re: DOORS?
Posted:
Fri Nov 11, 2011 8:36 pm
by lcl
Note that you have to use a single door actor and then clone it.
You can't use tiles for this and you can't have those doors just as a part of your ground tile actor.
And you must not have any physical response between the main actor and the door actor.
I wish that made sense.
Tell me how you have done your doors (clones, tiles or what), that will help me to help you.