this code keeps the circle in place with the world as it scrolls. note you were referencing the wrong object for now (map rather than map.world) so the scrolling broke
next step… findin an app that’ll let you draw an optimized box2d world over your tilemap
you wouldnt want to add physics to each sprite on the map presumably. and if it’s a large scrolling map that’s redrawn in portions… well that wouldnt even be able to tie directly into the tilemap. presumably the tilemap would have to be redrawn based on whats going on in the invisible physics world.
Yea I’m thinking stuff like that will be going in Coconut - http://grahamranson.co.uk/project-coconut.php - currently there is nothing to the project as I want to get Lime finished first.
Thanks for the help so far [import]uid: 5833 topic_id: 3534 reply_id: 10910[/import]
Yea something like that would be great however I’ve never done any Mac development so wouldn’t even know where to begin with proper tool dev [import]uid: 5833 topic_id: 3534 reply_id: 10912[/import]
Since tiled apparently can export an image of your map you can use that as a layer in inkscape to draw your world over. Then take the generated svg file to create your world in your game engine.
can I suggest that specific features of lime and coconut be modular is you can require only the bits you need. This is purely for keeping the elements needed down to a minimum to conserve memory on the phone
Since tiled apparently can export an image of your map you can use that as a layer in inkscape to draw your world over. Then take the generated svg file to create your world in your game engine.
can I suggest that specific features of lime and coconut be modular ie you can “require” only the bits you need. This is purely for keeping the elements needed down to a minimum to conserve memory on the phone
but each of these could be loaded individually as required just to suit certain needs
of course there are 2 different kinds of scrolling… scrolling a whole map as one big display object, or using the delta scroll & redraw method, so essentially this could actually be split into 2 files too
in the end though it might only be a matter of a few KB difference so might not be worth the effort to separate them out
Currently Lime is about 12Kb so not too big so far but will certainly think about this when/if it get’s big however I think it will probably remain fairly small simply because there won’t be much more in it (famous last words ) [import]uid: 5833 topic_id: 3534 reply_id: 10990[/import]