Rogue body move issue on Android platform

Discuss new features and future development.

Rogue body move issue on Android platform

Postby tobby2014 » Mon Jun 16, 2014 9:34 pm

Hi all,
I am trying to develop a cross platform game, I use cocos2d-js(javascript) with chipmunk.
I created a rogue body, and try to move it by position.
This is easy and it works well when I debug it at the browser,
but when I compile it to apk and installed to my android mobile,
the rogue body does not move at all.
the codes are like below:

this.body.p.x -= 1; or this.sprite.setPositionY(this.body.p.y + 1);

they all works on browser.But not on android.
I am so confused. I hope someone could help me on this.

I am Chinese and there are not many document about chipmunk.
The worse thing is Chinese government make us not able to access Google in the mainland.
F*** Chinese government!
tobby2014
 
Posts: 2
Joined: Mon Jun 16, 2014 9:10 pm

Re: Rogue body move issue on Android platform

Postby tobby2014 » Tue Jun 17, 2014 7:23 pm

I added the rigid body to a sprite, and tested again.
The body and the sprite moved, but the shape didn't move.
Why?
tobby2014
 
Posts: 2
Joined: Mon Jun 16, 2014 9:10 pm


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron