yet another dumb question

I’ve gone through the tutorials now. Let’s say that I wish to create a player world with 5 maps in it. Now each map has spawnpoints for enemies so for each map we put that specific enemy’s tileset with the map.
We also have a ‘hero’ that can travel all the maps. Do I need to add his tileset to each map? What if I have different spritesheets for different costumes for our hero. Do these also need to get added to each map? Same with our hero’s weapons, etc. Or is there a way to in code to add our hero without adding him to each map.

[import]uid: 9035 topic_id: 8560 reply_id: 308560[/import]

You could either add his tileset to to each map, probably with an external tileset, or you could create your player through regular Corona code and then add the player to the map yourself. [import]uid: 5833 topic_id: 8560 reply_id: 30731[/import]

I was wondering about adding it just using Corona. I tried that with drawing a new rectangle and transitioning across the screen. (after the map got generated)
I created a foreground layer. Think pylons on a harbor scene where the hero is behind them. When I move the rectangle with a transition it goes in front of the pylons. How do I get Corona drawn object on the parallaxbase layer? [import]uid: 9035 topic_id: 8560 reply_id: 30733[/import]

You will want to add your player to the correct layer, assuming that you have a map object, a player object called “hero” and the layer is called “Player” then you can do this:

[code]

local layer = map:getTileLayer(“player”)
layer:addObject( hero )

[/code] [import]uid: 5833 topic_id: 8560 reply_id: 30780[/import]

I knew there was a simple answer there. I’ll play around with that later. Thanks again. [import]uid: 9035 topic_id: 8560 reply_id: 30787[/import]

No problem. If you have any issues with it just give me a shout. [import]uid: 5833 topic_id: 8560 reply_id: 30789[/import]