DOORS?

Non-platform specific questions.

DOORS?

Postby hunter84 » Thu Nov 10, 2011 5:12 pm

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?
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby lcl » Thu Nov 10, 2011 7:39 pm

Well, my door system works if yo use it right. :D
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 -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: DOORS?

Postby hunter84 » Thu Nov 10, 2011 8:16 pm

wait i might have mistyped something? ill try it again
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby hunter84 » Thu Nov 10, 2011 10:10 pm

ok
error line 2: redeclaration of parameter 'actor'
error line 5: redeclaration of parameter 'GetClone'
error line 7: Misplaced return statement
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby RippeR7420 » Thu Nov 10, 2011 10:18 pm

Its case sensitive... So try like "getClone" and/or "Actor".. I'm not sure though haha. :)
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: DOORS?

Postby hunter84 » Thu Nov 10, 2011 10:23 pm

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
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby lcl » Thu Nov 10, 2011 10:26 pm

I will help you with this tomorrow, it's quite late here. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: DOORS?

Postby hunter84 » Thu Nov 10, 2011 10:27 pm

ok while your asleep ill be posting all the errors k? and tomorro you can help?
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby lcl » Thu Nov 10, 2011 10:35 pm

hunter84 wrote:ok while your asleep ill be posting all the errors k? and tomorro you can help?

Yeah, sure :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: DOORS?

Postby hunter84 » Thu Nov 10, 2011 11:04 pm

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'
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby RippeR7420 » Fri Nov 11, 2011 3:12 pm

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?
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: DOORS?

Postby hunter84 » Fri Nov 11, 2011 4:41 pm

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.
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby lcl » Fri Nov 11, 2011 4:55 pm

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 -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: DOORS?

Postby hunter84 » Fri Nov 11, 2011 5:47 pm

ok heres a example


player
actor
___
/door\
| |
=====
instead of going in front of the door he walks on top of the door
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: DOORS?

Postby lcl » Fri Nov 11, 2011 8:36 pm

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. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest