no bounce in cross platform controller template

help =[
my game is soooo close to done but the controls are horrible. i switched over to the Official Cross Platform Controller Template. my main player actor used to bounce off a wall and if you held the controller in it would keep going the other way till you let go. now its like it non stop refreshes the direction, so if i hold up it hits the wall like 50 times a sec (random stat) how do i get the bounce back?
try making an actor with collision on the DPad_Style2 or the Thumbstick_Style2 scenes and collide with the main actor to see what i mean. (in the Official Cross Platform Controller Template)
my old style was the x and y attrib and the if game right = true
change velocity right 300
but it would stop moving whenever you hit 2 buttons by accident. and i got used to them but NO ONE else could even beat the 1st lvl on SUPER eazy, which means BAD reviews and no sales =[. the thumbstick style 2 is awesome except it doesnt bounce. plus i dont know how to make it one velocity instead of speeding up (anyone who knows how, id love to hear how)
thanks everyone for reading this, and extra thanks to anyone who answers =]
my game is soooo close to done but the controls are horrible. i switched over to the Official Cross Platform Controller Template. my main player actor used to bounce off a wall and if you held the controller in it would keep going the other way till you let go. now its like it non stop refreshes the direction, so if i hold up it hits the wall like 50 times a sec (random stat) how do i get the bounce back?
try making an actor with collision on the DPad_Style2 or the Thumbstick_Style2 scenes and collide with the main actor to see what i mean. (in the Official Cross Platform Controller Template)
my old style was the x and y attrib and the if game right = true
change velocity right 300
but it would stop moving whenever you hit 2 buttons by accident. and i got used to them but NO ONE else could even beat the 1st lvl on SUPER eazy, which means BAD reviews and no sales =[. the thumbstick style 2 is awesome except it doesnt bounce. plus i dont know how to make it one velocity instead of speeding up (anyone who knows how, id love to hear how)
thanks everyone for reading this, and extra thanks to anyone who answers =]
Comments
This often happens when the actor is traveling so fast that it gets too far into the wall before the collision detection takes place. To test if this is what is happening try slowing down the velocity and see if it is still sticking inside the wall.
One solution is to simply move the actor away from the wall when a collision happens. (Change attribute self.position.x to: self.position.x + 5. Or something like that.)
RThurman
I put a collide behavior in the skywardA actor: bounce when colliding with actor of type myWall.
When I use the controller to move the ship to the right. Sure enough it moves right until it hits the wall. Then (since I'm still holding the controller to the right) the ship keeps hitting the wall. When I release the controller, the ship quits bouncing against the wall.
What next?
o and btw RThurman, thank you for trying this out for me, i appreciate it.
Wouldn't it destroy any sense of user control if all of a sudden the controller didn't work? The poor user would be mashing the controller to the right, but the ship still just bounces left like a ball? How would the user regain control?
edit: Never mind. That's probably the effect you are looking for. It would make it more fun to try to regain control.
I am not sure how to upload projects to GameSalad. Can't help much there. I have used http://www.speedyshare.com to make files available for others to view. Something like that might be an option. (The file is deleted from their servers after a few days.)
btw sorry to anyone if it seems like im not being clear on what i want. im not good at wording things XD. thanks again to all who helped me soo far and/or all who have tried =] heres a link:
http://www.speedyshare.com/files/30449562/freon1200_lite.gameproj.zip
I tried to come up with some other options, but I couldn't get anything to work as well as the suggestion from yesterday. Perhaps if you tried to use yesterday's suggestion, but increase (or perhaps decrease) the speed, or perhaps increase the time of the 'bounce.'
Maybe someone else who uses the controller Template has already figured this out and will post a suggestion.