Search found 60 matches

by zell2002
Sat Oct 04, 2014 11:35 am
Forum: Support and Development
Topic: gamepads || joysticks - how to tell what is plugged in
Replies: 4
Views: 1130

Re: gamepads || joysticks - how to tell what is plugged in

ok that makes sense 360 controller is (of course) true for isGamepad() ps2 via usb converter is false ps3 controller is true how could i add my ps2 controller so its buttons can be seen also as A etc... Im writting a multiplayer game to play when friends come over, and have many ps2 controllers, so ...
by zell2002
Sat Oct 04, 2014 10:53 am
Forum: Support and Development
Topic: gamepads || joysticks - how to tell what is plugged in
Replies: 4
Views: 1130

gamepads || joysticks - how to tell what is plugged in

Hi, I've looked through the joystick API, but I'm a bit confused about how I go about doing this. I have an xbox 360 controlled plugged in, a ps2 (with usb converter) plugged in, and a ps3 controller obviously they all show different button ids for each button press (the ps2 right stick on the Y is ...
by zell2002
Tue Apr 29, 2014 7:39 pm
Forum: Support and Development
Topic: Water + Buoyancy
Replies: 0
Views: 648

Water + Buoyancy

Following this : https://www.iforce2d.net/b2dtut/buoyancy But not sure how I go about doing the : Area and centroid of a polygon, using the Intersection of two polygons ive found : http://love2d.org/wiki/PointWithinShape And assume the func I want is : GetIntersect() Has anyone done something simila...
by zell2002
Fri Mar 28, 2014 11:41 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 109225

Re: LUBE (Networking Library)

Hi thought id post back with an example of the server recieving from the client : server code : function onConnect(id) server:send("hi", id) -- never gets through print(id) -- always prints id end function onReceive(data, id) print(data .. "sent from "..id) -- always see this end function StartServe...
by zell2002
Tue Mar 25, 2014 10:24 pm
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 66293

Re: [Library] anim8 - An animation library - v2.1.0 released

lol ye the order is VERY odd. ive seen a few like this (i didnt make it)
i would have made it like any sane person - top left to top right.

i think i will edit it.

cheers for the info! that will be most useful (will test it now so ive got the understanding under my belt)
by zell2002
Tue Mar 25, 2014 10:06 pm
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 66293

Re: [Library] anim8 - An animation library - v2.1.0 released

hi
how do you tell the grid/animation to play the frames in a specific order ?
as in:

Code: Select all

[3], [6], [9]
[2], [5], [8]
[1], [4], [7]
- a sprite of 3 by 3

i want to start at the bottom left, 1, and then move sequentially through the sprite.
by zell2002
Sun Mar 23, 2014 1:28 pm
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 109225

Re: LUBE (Networking Library)

client calls update(dt) yeah. and yeah the callbacks are getting called the recieves get called because they are getting constantly called in the update : function udpClient:_receive() local data, ip, port = self.socket:receivefrom() its just this, in the client, always returns : nil, timed out, nil...
by zell2002
Sun Mar 23, 2014 11:01 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 109225

Re: LUBE (Networking Library)

i havent over ridden them....
-- more code
was me saying, basically, the rest of the function code - i just didnt want to copy it all out - seemed a bit pointless
by zell2002
Sun Mar 23, 2014 10:33 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 109225

Re: LUBE (Networking Library)

yea
in LUBE :

Code: Select all

function server:update(dt)
print("server update")
-- more code
end

function udpServer:receive()
print("server rec!")
local data, ip, port = self.socket:receivefrom()	
print("data : " .. tostring(data))
-- more code
end
both these functions run
data is always nil
by zell2002
Sun Mar 23, 2014 1:50 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 109225

Re: LUBE (Networking Library)

hi version 0.7 i got working fine. but version 1.0 is very different, and i just can't get it to work at all globals : _ip = "127.0.0.1" _port = "18025" server code : function StartServer() server = lube.udpServer() server:listen(_port) server.callbacks.connect = onConnect server.callbacks.recv = on...