jradich wrote:Will a good sir be inclined to help me out? The code I have tried has not worked to cancel all actions (except the one for x) when x is pressed
Could you be a bit more specific? And also upload a .love from your current source code to the forums? Then we can see what you're doing and what you could change to make it do what you want it to do.
jradich wrote:Will a good sir be inclined to help me out? The code I have tried has not worked to cancel all actions (except the one for x) when x is pressed
Could you be a bit more specific? And also upload a .love from your current source code to the forums? Then we can see what you're doing and what you could change to make it do what you want it to do.
I apologize for my late response, but what I mean is that when you press 'x' (which currently just makes the guy look like he is striking a hammer) it will stop you from moving if you are moving when you press it, in addition to what it presently does. Basically, I've been trying to make it so that when you press it, it looks like he is stopping in a fixed position so he can strike his hammer.
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
You asked for some collision help, I've attached a version of your main.lua with a really simple bounding box algorithm, it doesn't work for polygons but could. It's not the best, but hopefully it helps. Just drop it in a copy of your code (replacing your main) and test it out.
EDIT: You "test it out" by trying to move into the boxes. You can add more boxes (check love.load()).
waraiotoko wrote:You asked for some collision help, I've attached a version of your main.lua with a really simple bounding box algorithm, it doesn't work for polygons but could. It's not the best, but hopefully it helps. Just drop it in a copy of your code (replacing your main) and test it out.
EDIT: You "test it out" by trying to move into the boxes. You can add more boxes (check love.load()).
I am forever in your debt, noble warrior.
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!