Search found 23 matches

by Rob.m
Mon Oct 03, 2016 11:26 am
Forum: Support and Development
Topic: Can't run love cos OpenGL version.
Replies: 3
Views: 3805

Re: Can't run love cos OpenGL version.

Love 0.9.2 works fine. I will just stick with that for now.
by Rob.m
Mon Oct 03, 2016 11:06 am
Forum: Support and Development
Topic: Can't run love cos OpenGL version.
Replies: 3
Views: 3805

Can't run love cos OpenGL version.

Hi, I installed Love2D and when I go to run it it says - The program requires a graphics card and drivers which support OpenGL 2.1 or OpenGL ES 2. Detected OpenGL version: 1.4.0 - Build 8.14.10.1930 Intel Bear Lake B (Intel) My graphics is inbuilt to the main board (Intel Q35 express Chipset). I dow...
by Rob.m
Sun Mar 24, 2013 5:17 am
Forum: General
Topic: click drag drop mouseover mouseout all in an object
Replies: 0
Views: 2591

click drag drop mouseover mouseout all in an object

Hi all and thanks everone for the help. I have some rough code (I will clean it up) that has mouse events and draw in an object. The drawn object can be moved anywhere on the screen and the mouse event still work. There is nothing more than main.lua so you can copy and paste it to try it. The drop e...
by Rob.m
Sat Mar 23, 2013 8:46 pm
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

Re: instance/scope of self

Thanks Inny, Bartbes and Robin I will give it another go today (GMT+10:00) I will stick with doing things the simple/hard way for now so that I learn why things are done as they are. PS: Robin, I had to look up the meaning of Omniscient so I am obviously not a member of that group lol. I don't quite...
by Rob.m
Sat Mar 23, 2013 9:05 am
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

Re: instance/scope of self

For any other newbies, here is what I discovered. 'self' is not at all like any other language that I know. For example. Javascript has 'this' which always points to something in the current scope. 'this' can inherit a sub part of it's 'parent' scope. Javascript can do this as it has scope inheritan...
by Rob.m
Sat Mar 23, 2013 7:27 am
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

Re: instance/scope of self

Well I give up lol. I have spent (wasted) a day on this and I have gotten nowhere at all. I will explain what I want to achieve. I want to have many objects such as buttons (images) and put events like mouseover mousedrop mousedrag mouseclick into the objects in such a way that the same events (as c...
by Rob.m
Sat Mar 23, 2013 4:32 am
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

Re: instance/scope of self

OK, I think I have an idea and I will test it. I can always do this the way you describe. That is declaring the parent object first object = {} object.method = function (self) ... end but this does not work object = { attribute = 'value', method = function (this) ... end } I assume that the reason i...
by Rob.m
Sat Mar 23, 2013 4:06 am
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

Re: instance/scope of self

PS: Can I do this ? ie use a dot opperator on an indexed element of an array / table using var[inedex].

Code: Select all

objects[index].click()
And also cam I do something like this ? ie push elements onto an array / table stack using [] notation

Code: Select all

objects[] = object
objects[] = {click = function() ... end}
by Rob.m
Sat Mar 23, 2013 4:04 am
Forum: General
Topic: instance/scope of self
Replies: 11
Views: 8298

instance/scope of self

Hi all, I have never done any OOP and I am having trouble with instance v refference and the scope of 'self' I have been reading here - http://www.lua.org/pil/16.html But I still can't get it right. The erroe I am getting is "44: attempt to index local 'self' (a nil value)" Here is my code...
by Rob.m
Fri Mar 22, 2013 11:06 am
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1194144

Re: Avatars: OBEY!

OK, I'm in --->