icecapboy Posted June 29, 2006 Report Share Posted June 29, 2006 Hey gang, I'm having a problem with spindashing. See, I used Rage's Static Engine for my Sonic fangame STH:Origin of STH2 (many of you guys heard of this.) My question is is there another way to make spindashes for both directions because when my character spindashes to the right, it works correctly but when it comes to the left, it's not very good. What am I doing wrong, and I'm using TGF to let you guys know. Link to comment Share on other sites More sharing options...
Zal Posted June 29, 2006 Report Share Posted June 29, 2006 TGF is fiddly at best. Could you elaborate a bit? For example, when you say 'it's not very good', what do you mean? Link to comment Share on other sites More sharing options...
icecapboy Posted June 29, 2006 Author Report Share Posted June 29, 2006 What I mean is that when the events are created to spindash right, it works perfectly but for the left, it charges to dash but when I stop pressing the key to charge, Sonic is still in his spindash charge animation and the spindash to the left fails. Link to comment Share on other sites More sharing options...
someone2040 Posted June 29, 2006 Report Share Posted June 29, 2006 Did you just copy the events the events for right to left, and then just replace the objects needed? Because maybe you didn't replace one of the objects when dealing with the events, or didn't change one of the values if you did that. I do that sometimes, I copy a piece of the code and then accidentally don't make one necessary change, and it all falls to pieces. Link to comment Share on other sites More sharing options...
Zal Posted June 29, 2006 Report Share Posted June 29, 2006 Yes I agree. If you've copy and pasted this into another frame, app or whatever, you've most likely missed one or two things that got left behind. Link to comment Share on other sites More sharing options...
LarkSS Posted June 29, 2006 Report Share Posted June 29, 2006 Yes, that's possible, but it's also not needed. I'm not sure how the movement works, but both directions should work with one set of events and the directions should work by multiplying its X movement by a variable. If you're moving right, times by 1. If you're moving left, times by -1. That would completely prevent problems from happening for 1 direction and it's much easier to code. Okay, maybe if you said exactly what the code for you spindash is, I could help. Link to comment Share on other sites More sharing options...
Recommended Posts