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...
|
In response to unimatrix
|
|
No...I cant find a library for it...
|
In response to TrondLock
|
|
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 |
In response to Deadron
|
|
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. |
In response to TrondLock
|
|
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.
|
In response to Garthor
|
|
please comment this code.
|
In response to TrondLock
|
|
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. |
In response to Dracon and Goku72
|
|
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 |
In response to LordJR
|
|
I understand all that...but i sitll cant get this to work
|
In response to unimatrix
|
|
Welcome back, unimatrix!I devoted 3 lines of code for your welcome-back!
o.O) ~wolf01 |