Tut8 Question

http://dl.dropbox.com/u/16928994/Tut8.zip

I managed to get the brick to bounce on the large block I defined. Then I wanted to see if I could get the guy.png which was defined as an object earlier to carry the brick on his head but no matter what I do the brick spares the guy’s life.

By adding bodyType = static to the guy I would have expected the brick to bounce on his head but its not happening. What I am doing wrong? Could you kindly take a look?

Thanks [import]uid: 11904 topic_id: 4635 reply_id: 304635[/import]

Created the polygon object as described in Tut9 with similar outcome. brick falls through the object which is supposed to be solid. Not sure why [import]uid: 11904 topic_id: 4635 reply_id: 14671[/import]

Scratch that. Type = Body was not recorded properly in the polygon object pointA properties. Issue with the guy from Tut8 still there though. [import]uid: 11904 topic_id: 4635 reply_id: 14677[/import]

Ahhh, when I change the Type for the guy object from playerSpawn to Body it magically started to act as I wanted it to and now bounces the brick where its head is supposed to be but now the code that puts the guy.png in there does not work anymore since the type is not called playerSpawn anymore.

Question - How can I keep the type of an object = playerSpawn and then add the Type = Body programmatically? Thanks [import]uid: 11904 topic_id: 4635 reply_id: 14678[/import]

Any ideas? [import]uid: 11904 topic_id: 4635 reply_id: 14727[/import]

Hey sorry was away from my computer (having a little MonkeyDead Studios christmas party :slight_smile: ), could you send me your project so I can have a look at it?

graham AT grahamranson DOT co DOT uk [import]uid: 5833 topic_id: 4635 reply_id: 14739[/import]

Don’t worry about it. Enjoy the holidays. If you wish to take a look I think its the one at http://dl.dropbox.com/u/16928994/Tut8.zip

Cheers & thanks [import]uid: 11904 topic_id: 4635 reply_id: 14740[/import]

Fixed it :slight_smile:

What I did was put the playerSpawn object back to a “Body” type and then give it a property of “PlayerSpawn”, then in your main.lua code I changed your ObjectListener to a PropertyListener - http://www.justaddli.me/api.php?c=map&m=addPropertyListener

Updated code is here - http://dl.dropbox.com/u/571145/Tut8.zip

Hopefully it is what you want :slight_smile: [import]uid: 5833 topic_id: 4635 reply_id: 14742[/import]

Great! Thanks for checking this out. I now understand it. It might be interesting to update this in the Tutorial itself as well. [import]uid: 11904 topic_id: 4635 reply_id: 14743[/import]

Yea I think I should, I created the property listeners after making that tutorial and forgot to go back to it. Will update that soon. [import]uid: 5833 topic_id: 4635 reply_id: 14775[/import]

Sound great! Are you releasing another update soon? [import]uid: 11904 topic_id: 4635 reply_id: 14778[/import]

I hope to be yes, I’m having a couple of days break over the holidays. I will still be checking forums and email though just not doing any dev work (unless there is a bug). [import]uid: 5833 topic_id: 4635 reply_id: 14822[/import]