Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

PonyTiled Modification
Started by Blex Jul 08 2017 07:19 AM

No replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Blex

[GLOBAL: userInfoPane.html]
Blex
  • Corona Geek

  • 1,199 posts
  • Corona SDK

THIS IS NOT A QUESTION!

 

I added a small function to the ponytiled.lua file to make Tiled even easier to use. Instead of dragging and individually assigning physics to objects, I added 3 lines of code so you can just use tiles, and add physics to entire layers at a time.

 

The extra function goes below the flip code for the tiles:

--apply physics
if layer.properties.bodyType then
    physics.addBody(image, layer.properties.bodyType, layer.properties)
end

As you can see, it is very complex.  :P

 

Just to make it simpler.




[topic_controls]
[/topic_controls]