Hello all,
I'm working on a little platform game and I've come to a point where I need to have wind push the character to the right or left throughout stage. (Like Mega Man and Bass level with the rain and wind) I know this means using the X vector but it seems to be that the decel is getting in the way of the code functioning properly. For example if I write every tick set vector x to vector x + 30 or something it won't work because it's not strong enough to bypass decel. However, if I set decel to 0 then it will work. This isn't a good solution though because then the character is a bit too slippery.
I can get it to work sort of by fudging with Max Speed and Decel and making custom Max Speeds depending if you are going left and right. But I don't think it works well enough.
My other attempt just involved setting the player box's X position and always add to that but that has serious complications when it comes to slopes.
Is there some way to apply a separate value from vector x to the platform behavior in order to apply wind effects without having to deal with decel and max speed?
In Multimedia fusion there was a plugin called Platform Movement Object and it has 2 additional values called 'Additional X' and 'Additional Y' that is specifically for wind effects.