Idea on "Sonic Loops"

Those loops on Sonic that you run on, and sonic sticks to them. I think I have an idea on how to make them. Make a small trigger event that activates a switch() command, which then as your holding the keys down allows a large sine wave to accur, EXAMPLE:
You get where I'm comin from right? xD The coding will be hard but using that it can be done
Or whats his name's "Stick to" function
- Code: Select all
switch(bleh) {
while(key[KEY_RIGHT]) {
sin(angle)*SPEED //Or however its done xD
}
}
You get where I'm comin from right? xD The coding will be hard but using that it can be done
