grapefruitjs / grapefruit

Outdated, I recommend you use photonstorm/phaser instead!
MIT License
106 stars 14 forks source link

Sprite isometric position #57

Open englercj opened 11 years ago

englercj commented 11 years ago

setPosition should do isometric transformations for you if it is in a TiledMap that is isometric.

mgutz commented 11 years ago

I have initial implementation working here grapefruit basics of setPosition though not ready for pull request. Click on orb and leaf and move with arrow keys.

I can't seem to test physics though for setVelocity. If I assign mass property in Tiled, there are errors loading. Do you have a physics example anywhere? I don't mean to bother you but I really want to help with isometric stuff as that's what I am most interested in :)

englercj commented 11 years ago

What errors do you get? All lttp sprites have physics enabled (though the ones from tiled are using the static property since they don't move.

mgutz commented 11 years ago

Oh, you updated that project yesterday. I'll look there. Probably user error.