0 Favourites

Sonic

  • hello, I'm making a sonic game, any idea how to create the spindash and physics of motion, would be helpful

    <img src="https://dl.dropboxusercontent.com/u/96231736/pics/scap.JPG" border="0" />

  • Well the easiest way is on key pressing down, do the spin animation, when the key is released, keep the animation but move sonic forward at a much faster pace.

    Is that what you mean? I'm not totally sure what you mean by physics of motion.

  • You could create a global variable called charge or something like that.

    I guess if you hold down, then the spindash animation can play in a loop while also adding some value to the variable called charge, then when you let go you could apply a physics impulse based on the value of charge to launch sonic.

  • Well the easiest way is on key pressing down, do the spin animation, when the key is released, keep the animation but move sonic forward at a much faster pace.

    Is that what you mean? I'm not totally sure what you mean by physics of motion.

    as changing the angle of the sprite when it rotates 360 degrees for the platform?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • > Well the easiest way is on key pressing down, do the spin animation, when the key is released, keep the animation but move sonic forward at a much faster pace.

    >

    > Is that what you mean? I'm not totally sure what you mean by physics of motion.

    as changing the angle of the sprite when it rotates 360 degrees for the platform?

    This isn't a trivial matter as changing the angle of the sprite is the algorithm that gives Sonic games their novelty and is difficult to replicate.

    This gives some details on the algorithm. I also recommend looking at Sonic Physics Guide, which is guide designed for creating Sonic fan games that gives details about the algorithms and variables used to create the classic games.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Sonic Physics
126 31,178
Ostrich10164's avatar
Ostrich10164
Unread hot topic
0 Favourites
Sonic HD
28 4,397
lucid's avatar
lucid
Topic
20 10,721
patchester's avatar
patchester