ID:175375
![]() Apr 29 2003, 11:24 am
|
|
Im trying to make a game like the light cycled race seen in Tron. (Sorta liek a 2 player snake game) but how would i make it so that my bike leaves a trail
|
![]() Apr 29 2003, 1:22 pm
|
|
There should still be a demo here on that last time I looked, if not, give me a holla at [email protected]'s been awhile since I've been here but I can try...
|
TrondLock wrote:
No...I cant find a library for it... Searching on the word "trail" brought up this: http://developer.byond.com/hub/ACWraith/Trail |
This library is not what I need...ive alread looked at it.
Besides, that library has uber amount of errors in it and no tutorial. |
then try looking up Entered() in the BYOND reference. And, if you have any more problems with that or simply don't understand it come back to the forums.
|
Only part that needs commenting is the . = ..() and the if(.) part.
There is a "variable" which is simply "." The variable is the default return value, so that if you set . to 1, using "return" will return 1. If it reaches the end of the proc, it will return the default return value. By doing . = ..(), it does the default operation, and sets the default return value to the return of the default operation. Basically, it's checking what would normally happen, and if Move() would normally return 1, meaning the move was successfull, then it will place the bike trail on the oldloc turf, which is the turf that the bike was on. |
You know if you take the time to understand that BYOND is setup like a TREE, and the different paths create different object, then go and read through the DM Reference over there to the left, you'll answer alot of your own how-do-I questions. Its when you start trying to get all these paths and objects to interact that you may run into problems.
LJR |