[Help!] Stopping all forces being applied on an object & Dialogue
I have the following problem:
I'm currently stumped with two things. First the physics one. To put it simply, let's say there's an enemy that pushes you backwards a somewhat great deal (using physics_apply_impulse) and I want to have this 'stop all CC' button, so when I press it the player immediately stops to resting position.
The other problem has to do with dialogue. Not dialogue boxes, I'm ok with that, but the dialogue itself. I've looked around so hard but I haven't been able to find anything. How do people store dialogue in a somewhat text-heavy game? How do you access it?
I have tried:
For the stopping forces one, I haven't really tried much, I just have no clue how to tackle this one. I tried forcing the speed variable to 0 but that didn't work, I don't think that even makes any sense but that's just how lost I am with this one.
For the dialogue one I'm also pretty stumped. I have a few ideas in mind but I don't really want to proceed with them because if they turn out to be sub optimal the refactoring will be monumental so I just figured I'd ask. I was thinking about storing all dialogue in an object or a script but then if I have to change anything it'll get really messy really fast. I also thought about storing each character's dialogue on it's own object, but that would honestly be much worse.
I am using:
GM:S Standard Standard Edition v1.4.1757 GML
Thanks!
Posted Sep 27, 2016, 5:20 PM UTC