I’m probably driving you batty by now with all these questions.
I know you had an object listener in your example for a spawnpoint but that has to occur before the map gets created. If you want to respawn the hero or any ‘baddies’ I need to get the spawnpoint from an object set in an object layer on the map. So I create an object and gave it a name and type so as to go get it info as follows:
[lua]local RopesLayer = map:getObjectLayer(“Ropes”)
local spawnpoint = RopesLayer:getObject(“Location1”,“HeroSpawn”)
print(spawnpoint)
local herolocation = spawnpoint:getPosition()
print(herolocation)[/lua]
The output appears to only give me the x location of the object.
WARNING: Simulator does not support multitouch events
table: 0xe32c4a0
113
canjump
Tell me if I’m doing it wrong [import]uid: 9035 topic_id: 9140 reply_id: 309140[/import]