Issue With Physics
Hello I am having a small issue. I created 4 attributes called. Up,Down,Left,Right. For touch controls. I made a GUI interface with arrows going up,down,left, and right. And in it I made code for each of them saying.... For the right button I created a rule. When actor Receives touch inside. Then game.Up is False, game.Down is false, game.Left is false, Change Attribute game.Right is true. And then i created another rule. When actor receives event (Key) ,Right, Change attribute game.Right True. So everything works for up,down,left, and right. The character moves. BUT when I try to put drag on the character it dosent do anything. I am using Accelerate when I move the character but the character just keeps going for a long time then it will bit by bit slow down but. I want it to slow down faster. I used the move attribute but i dont like how he suddenly stops I want more of a underwater feel with the physics. Is there any solution to this problem. Thank you!!!
Best Answer
-
jonmulcahy Posts: 10,408
First of all, simplify your move rules
On each actor have something like this
(for the up actor)
When actor receives touch
Game.UP is true
Otherwise
Game.up is false
This way you can move in the diagonal.
As far as movement goes, what's your acceleration like? How does the player move? Is it like a fish under water where it moves in all directions, or a person walking on a street?
Answers
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
thank you for helping me out @jonmulcahy and for your time.