Tron lightcycle effect help
#1
Posted 30 January 2012 - 08:45 AM
(I have pro version)
#2
Posted 30 January 2012 - 09:00 AM
A better but more complicated way would be to use an mp_grip and tiles/surface
#3
Posted 30 January 2012 - 09:10 AM
#4
Posted 30 January 2012 - 09:13 AM
The second way is actually quite complicated and would require you to read up on movement grids.
#5
Posted 30 January 2012 - 09:19 AM
#6
Posted 30 January 2012 - 10:31 AM
So what exactly would i need to make it so that the block is not touching the bike when it is put down?
If you want to make it spawn an object like that, the crude way to do it would be to make the bike spawn an invisible object which checks if it is in contact with the bike, and when it isn't it'll spawn the "trail" object and then destroy itself (to prevent it from spawning infinite trail objects on top of each other). Of course, you could also make the trail object non-collideable at first, have it check if it is touching the bike and when it isn't, have it change to collideable and then tell it to stop checking if it is in contact with the bike (to prevent all the trail objects from constantly checking, that could cause some nasty lag)
Edit oh yeah sorry, that might not have been entirely specific. What you can do is to tell the bike when it collides with a trail, to check if it has, for example, trailcollision = 1 (that's a value I just made up, you can call it whatever you want). Then when you spawn the trail object from the bike at first, have the trailcollision be equal to 0 until the bike is no longer in contact with the trail after spawning it, then change it to 1 so that the bike object will check on collision "Is this collideable? Yes it is! *bam*"
Edited by Helios Machina, 30 January 2012 - 10:35 AM.
#7
Posted 30 January 2012 - 10:47 AM
*EDIT*
well i got it to work so the invisible object creates the trail yay but it still is to close to the bike so i guess what i want to know now is how to make it check to see if its to close to the bike?
Edited by Dr Awesimo, 30 January 2012 - 12:08 PM.
#8
Posted 30 January 2012 - 03:22 PM
Have it check for collision with the bike object in the code before it spawns the trail. Have the invisible object check if it's colliding with the bike, then spawn the trail object once the bike is far enough away.I understand what you mean but im so new at this I dont know how to put it in to gamemaker to make it work
*EDIT*
well i got it to work so the invisible object creates the trail yay but it still is to close to the bike so i guess what i want to know now is how to make it check to see if its to close to the bike?
#9
Posted 31 January 2012 - 09:10 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











