The Daily Click ::. Forums ::. Klik Coding Help ::. Static Movement Snowboarding
 

Post Reply  Post Oekaki 
 

Posted By Message

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
2nd October, 2009 at 00:26:16 -

I have "active lines" drawn out on my game. I want the snowboard active to slide down these lines. I've tried looking up some sort of motion equation or something using direction, gravity, and speed, but I cant find anything I need. There are three counters (direction, gravity, speed) that affect the snowboarder. In the game I change these counters which in turn affect the snowboarder.

Direction is easy:
Angle of Line>=90 and Angle of Line<=269: Set counter to Angle of Line (overlap)
Angle of Line<=89 and Angle of Line>=270: Set counter to Angle of Line (overlap)+(Flipped)

If I can get the gravity (Y Axis) and the speed (X Axis) correct, then he should glide perfectly down the lines. Any help?

Edited by Sumo148

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
2nd October, 2009 at 02:41:59 -

I think you greatly underestimate how difficult it will be. I tried making a line rider game ages ago - I also had the line drawing part worked out quite quickly, but the physics is *very* complicated. The Phizix extension is probably going to be your best bet.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
2nd October, 2009 at 03:04:25 -

It's easy to make the snowboarder slide along the lines. It gets tricky when you need gravity momentum and other physics factors, but it is certainly possible. I'm not very good at physics myself so I can't help you.

Maybe someone on the clickteam forums will know something about these types of physics. The Box 2D extension is in open beta, so you could try that.

 
n/a

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
2nd October, 2009 at 03:13:51 -

Okay then. I'll try to use the phizix object or the box 2D object, Ill probably need help with that since ive never used them before.


 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
2nd October, 2009 at 04:11:17 -

Check the examples, they're awesome!

I'm too scared of physics to figure them out though.

 
n/a

bigredron



Registered
  07/04/2007
Points
  299
2nd October, 2009 at 04:29:35 -

you should post on the CT forums, they are pretty helpful and several members are great with physics

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
2nd October, 2009 at 13:39:49 -

What you need to do is apply regular physics to it, quite TEH BoRiNg, but necessary. Create the laws of physics and simply apply them to the world. You need the regulars, like mass, velocity, gravity, friction etc, and the ever so important ...uh...em... how the !%?# do you say "tröghet" in english? Damn I can't remember... anyway, that's important too. Isn't Muz quite dandy with this kind of stuff?

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd October, 2009 at 13:45:39 -


Originally Posted by Eternal Man [EE]
how the !%?# do you say "tröghet" in english?



Google says inertia.

 

  		
  		

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
2nd October, 2009 at 14:51:36 -

I AM INERT.


 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click