Scrolling Game Development Kit Forum
SGDK Version 1 => Help/FAQ => Topic started by: Jam0864 on 2006-08-18, 12:29:20 AM
-
is there a way to make it so when the riders head hits a tile in category whatever that he activates a special function that kills him because i need to make it so you have to balance the bike can i make a seperate sprite (his head) stay in the right spot (on his shoulders) by the way the motorbike is a 360* sprite so you can lean each way
-
Detecting a difference in collision between the head and a tile and the rest of the bike + rider and a tile would certainly require two different sprites, and the head would have to be the player sprite to be able to detect colisions with a tile and activate a special function. The head would be controled by script and be palced at the correct location of the bike every frame. I can forsee a few potential problems with collisions between the head and the tile or placement of the head in this case, but those are to be overcome after the basics are layed down.
Yay, 500th post ;D!
-
w00t go durnurd!
Yay, 230th post...Im almost half-way there lol
I should stop posting spam...
*thinks of solution to dirtbike problem*
Um...I got nothing...
GL with that..
-
I think it would be funny to make the head follow the body (you can make a sprite follow another sprite in a specified class). Make the head the player sprite, but controlled by "follow sprite" instead of by the input. Then make the body controlled by input. Maybe it will work, or maybe it will look really funny, but either way it was worth the try :). (Make sure the speed of the head is at least as fast as the speed of the body otherwise the head won't be able to keep up!)
-
I had to... ;D
Bike Test (http://www.geocities.com/pivot_stick/bike_thing.zip)
-
Now That is Funny :D