Search found 34 matches

by garcia1000
Mon Jun 26, 2017 8:34 am
Forum: General
Topic: Please help with an animation logic problem
Replies: 3
Views: 3516

Re: Please help with an animation logic problem

Thanks for these replies Semicolon and JoshGrams. We solved it already and yes the problem was that the pivot point was anchored to the world coordinates and didn't take into account parent rotations.
by garcia1000
Mon Jun 05, 2017 9:57 am
Forum: General
Topic: Please help with an animation logic problem
Replies: 3
Views: 3516

Please help with an animation logic problem

Hello, I have attached a file showing my problem with an animation. It is basically several image files, with a body, a head, two arms, and a wand. I created some parent/child relationship. So the arms and head are children of the body. The wand is child of an arm. Then, I created two functions, one...
by garcia1000
Sun Sep 18, 2016 2:48 pm
Forum: General
Topic: questions: making a Server in LOVE2D/ making a multiplayer game questions
Replies: 15
Views: 15117

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Another question, does lovernet use the guaranteed transmission mode of lua-enet, or can data be lost?
by garcia1000
Sun Sep 18, 2016 5:58 am
Forum: Support and Development
Topic: Help with Lovernet please!
Replies: 0
Views: 2431

Help with Lovernet please!

Hello, I am using Lovernet for netplay in my game. I tried lovernet and from reading the wiki and tried some code. I have attached my code below. It is the example code, the only code I added was: lines 145-157 in define.lua lines 57, 59, 176-178 in client.lua Now, I set one instance of this as loca...
by garcia1000
Sun Sep 18, 2016 5:43 am
Forum: General
Topic: questions: making a Server in LOVE2D/ making a multiplayer game questions
Replies: 15
Views: 15117

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

I tried to use lovernet but the wiki is kind of incomplete and I don't understand how to generate the documentation. Can I see a list of what functions I can call? For example I tried to use self:getUsers() but that returns an empty table even though I had some peers connected.
by garcia1000
Wed Aug 24, 2016 3:27 am
Forum: General
Topic: questions: making a Server in LOVE2D/ making a multiplayer game questions
Replies: 15
Views: 15117

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

I haven't made a thread about it, but I've been working on the experimental LoverNet: https://github.com/josefnpat/LoverNet I've used it for DRACUL64 (LD35 game) and have done some demos. There's a wiki with quesitonable examples haha I'm looking into this for adding netplay to my game. Looks good!...
by garcia1000
Mon Aug 22, 2016 3:32 am
Forum: Libraries and Tools
Topic: Noobhub - opensource multiplayer library for LÖVE
Replies: 29
Views: 27276

Re: Noobhub - opensource multiplayer library for LÖVE

This is really great, thank you very much for making it!
by garcia1000
Fri Jun 10, 2016 2:20 am
Forum: Support and Development
Topic: love.graphics.push/pop to rotate around a pivot point
Replies: 3
Views: 3132

Re: love.graphics.push/pop to rotate around a pivot point

I solved it myself but I wanted to leave it up in case other people have similar problem :crazy:

I tried using offsets in love.graphics.draw. The problem I found was that offsets not only specify the point for the transformations, but ALSO where to draw the image on the screen.
by garcia1000
Thu Jun 09, 2016 9:00 am
Forum: Support and Development
Topic: love.graphics.push/pop to rotate around a pivot point
Replies: 3
Views: 3132

Re: love.graphics.push/pop to rotate around a pivot point

Hello. That's stupid code. I'm stupid. Sorry. Here's my better code: function Gem:draw(x, y, RGBTable, rotation, displace_x, displace_y) ID.draw = ID.draw + 1 love.graphics.push("all") if RGBTable then love.graphics.setColor(RGBTable) end love.graphics.translate(x or self.x, y or self.y) i...
by garcia1000
Thu Jun 09, 2016 5:05 am
Forum: Support and Development
Topic: love.graphics.push/pop to rotate around a pivot point
Replies: 3
Views: 3132

love.graphics.push/pop to rotate around a pivot point

Hey everyone! I'm not really understanding transformations in love2d, would love some help with this. Here's my current code, which will rotate an image around a pivot point specified relative to the image center: function Gem:draw(x, y, RGBTable, rotation, pivot_x, pivot_y) love.graphics.push("...