[Resolved] How to stop my player from spinning

I’m using Dpad to control the player( red square ).

I want my player to move without spinning.
Image and video hosting by TinyPic

however the square shape changes to diamond shape when I move the player.
Image and video hosting by TinyPic

Please help me guys!

I’m using this DPad template
http://developer.anscamobile.com/code/virtual-dpadjoystick-template [import]uid: 131469 topic_id: 23089 reply_id: 323089[/import]

Hey Jack;

You would need to find the part in the code that rotates the player and remove it - unfortunately I don’t know where that is and it’s a little long to crawl through, but perhaps Alex will see this and be able to assist :slight_smile:

Else, find that code! :wink:

Peach [import]uid: 52491 topic_id: 23089 reply_id: 92338[/import]

try object.isFixedRotation = true [import]uid: 118687 topic_id: 23089 reply_id: 92353[/import]

you’re talking about this one, right? http://www.dunkelgames.com/downloads

In this case, open player.lua and uncomment line 22

like this:

--player.rotation = -angle  

-finefin [import]uid: 70635 topic_id: 23089 reply_id: 92402[/import]

Thank you everyone.
I solved the problem by uncommenting line 22 “player.rotation = -angle”
just like canupa.com said.
Thanks canupa.
[import]uid: 131469 topic_id: 23089 reply_id: 92406[/import]

I solved the problem by doing what you said.
but it still spins when it hits corners.
Do you have any solution for this? [import]uid: 131469 topic_id: 23089 reply_id: 92523[/import]

For corners object.isFixedRotation = true should do it, I believe. [import]uid: 52491 topic_id: 23089 reply_id: 92686[/import]

Thank you so much!
it fixed the problem! [import]uid: 131469 topic_id: 23089 reply_id: 92688[/import]