Search found 3 matches

by Beastinlosers
Wed Aug 16, 2017 12:04 am
Forum: Support and Development
Topic: Need Help with Rotation around the cursor
Replies: 11
Views: 7210

Re: Need Help with Rotation around the cursor

Also Referencing my reply above, set parameter 5 and 6 to 1 (for default image size), so you can go on to fix origin (7 and 8).
by Beastinlosers
Wed Aug 16, 2017 12:02 am
Forum: Support and Development
Topic: Need Help with Rotation around the cursor
Replies: 11
Views: 7210

Re: Need Help with Rotation around the cursor

Put that in either update() or if you have a special player movement function within update, you should put it there. I store my player stuff in tables (in this case pl) pl.HeadRotation = math.atan2( love.mouse.getX() - pl.posX, pl.posY - love.mouse.getY() ) - math.pi / 2; Then wherever you decide t...
by Beastinlosers
Tue Aug 15, 2017 1:58 am
Forum: Support and Development
Topic: Access tiled property through main.lua
Replies: 0
Views: 1407

Access tiled property through main.lua

properties = {}, tilesets = { { name = "TileSet", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, image = "TileSet.png", imagewidth = 452, imageheight = 32, tileoffset = { x = 0, y = 0 }, properties = {}, terrains = {}, tilecount = 14, tiles = { { id = 12...