collision question
beefy_clyro
Member Posts: 5,394
hi all. so i have a side scrolling game where the main actor moves along at the speed of 200, this is the same speed as what the camera moves along at. There are only two buttons to move the main actor, up and down. When the button is pushed it is set to change the move up attribute to 1. There i a rule on the main actor that says when this attribute is 1 then move up at various settings. The problem i have is that i have an invisible floor and a top that the main actor collides with, i have the restitution on both set to 0 to stop any bounce! However, when it hits the floor or the top, if you keep pressing in that direction the main actors move speed gets slowed down a fraction, if you keep it pressed it gradually starts to get close to moving off the side of the screen or just to close to the buttons you have to press. I thought about having an invisible actor moving along just behind the main actor that collides keeping the actor from moving further back, for some reason this didnt work. Does anyone know why it will do this and what options i have to fix it or make a work around?
Thanks in advance
Thanks in advance
Comments