Author Topic: Motorbike Problem  (Read 4212 times)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Motorbike Problem
« 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

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Motorbike Problem
« Reply #1 on: 2006-08-18, 06:46:44 AM »
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!
Edward Dassmesser

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
Re: Motorbike Problem
« Reply #2 on: 2006-08-18, 07:35:55 AM »
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..

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Motorbike Problem
« Reply #3 on: 2006-08-18, 11:07:16 AM »
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!)

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
Re: Motorbike Problem
« Reply #4 on: 2006-08-18, 06:21:58 PM »
I had to... ;D
Bike Test

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Motorbike Problem
« Reply #5 on: 2006-08-19, 04:58:30 AM »
Now That is Funny :D