snake boss

F

fxokz

Guest
In a game i played there are big snake looking creatures with multiple segments for the body. Each segment flashes red when shot and can be destroyed. Is there an easy way to achieve this effect?
 
M

Maximus

Guest
yeah, you could have a snake object that is made up of a bunch of snake part objects. Like a head object that references a body object, that references another body object, etc until the tail. then each can have health and what not. If the snake gets cut in half, the side with the head lives on.
 
F

fxokz

Guest
yeah, you could have a snake object that is made up of a bunch of snake part objects. Like a head object that references a body object, that references another body object, etc until the tail. then each can have health and what not. If the snake gets cut in half, the side with the head lives on.
What about making the objects stick to eachother and follow eachother
 
M

Maximus

Guest
each object refences a 'parent' and a 'child' (I don't mean using inheritence). the head tells the body part where to go, then the body part tells then next body part where to go. so each child moves towards its parent and only has to keep track of the objects directly linked to it
 
Top