Game Development Community

Sonic Fangame scripts

by Jason Haden · in Technical Issues · 08/19/2008 (2:03 pm) · 10 replies

Does anyone know if it's scriptable to cause damage by jumping?
And also, is there an alternate way for controlled jumping without modifying the engine?

#1
08/19/2008 (2:13 pm)
Which engine are you using?
#2
08/19/2008 (2:15 pm)
TGE... but I haven't purchased it yet.
#3
08/19/2008 (2:24 pm)
Wouldnt it make sense to reduce energy rather then damage the player for jumping? ie, storing energy for slam dunk, jump takes x energy use. and yes it could all be done in script.
#4
08/20/2008 (7:44 am)
Ed, he could be trying to make a puzzle/platformer hybrid. Where the player must figure out the best path to the exit while avoiding both enemies and jumps, to conserve health.
#5
08/20/2008 (8:13 am)
He could, but Sonics would indicate the basketball team :) (hense the jumping) But Can we get more information Jason, on the type of project,we can point you to maybe more specific resources.
#6
08/20/2008 (11:40 am)
Sonic the hedgehog!
www.smashbros.com/en_us/characters/images/sonic/sonic.jpg I mean, the player does damage to enemies BY jumping.
#7
08/20/2008 (11:43 am)
In that case, you can have a jump switch the character into an "attack" state. And then you have a condition in the player's collision that if he is in the attack state, damage is applied to object (depending on type mask).

That's ONE possible way. It's definitely doable in script though.
#8
08/20/2008 (11:47 am)
You'll want to check the normal of a collision too, to make sure its colliding in a downward direction (given a certain angle of tolerance) otherwise you could jump face first into things when you are expecting to jump downward onto them.
#9
08/20/2008 (11:50 am)
But in the case of a Sonic-like game this would be the expected behavior. Sonic just needs to be spinning to cause damage. If it were Mario-like you care more about that.
#10
08/20/2008 (11:59 am)
KEWL! But I don't know torquescript... guess I'll have to learn.
At least I have the OFFICIAL character model from Sonic Adventure DX.