Search found 14 matches

Sat Sep 10, 2016 3:43 pm
Forum: Support and Development
Topic: Problem with x,y scaling
Replies: 8
Views: 1672

Re: Problem with x,y scaling

Also now that this is settled and my next question doesn't deserve it's own new thread,

How do I tweak my equations so a size of UDim2.new(1, 0, 1, 0) stretches the image to the screens bounds
Sat Sep 10, 2016 3:32 pm
Forum: Support and Development
Topic: Problem with x,y scaling
Replies: 8
Views: 1672

Re: Problem with x,y scaling

Your default Color3 is black (i.e. "multiply every color by 0 so it's all black whatever texture is used"). I've changed Color3.new so it defaults to white (lines 12-14) and it works great col3.r = Clamp(r or 255, 0, 255) col3.g = Clamp(g or 255, 0, 255) col3.b = Clamp(b or 255, 0, 255) White sound...
Sat Sep 10, 2016 3:30 pm
Forum: Support and Development
Topic: Problem with x,y scaling
Replies: 8
Views: 1672

Re: Problem with x,y scaling

KayleMaster wrote:Side question, what's your IDE/text editor or whatever they call it?
Visual Studio 2013, using the BabeLua "plugin"
Sat Sep 10, 2016 1:49 pm
Forum: Support and Development
Topic: Problem with x,y scaling
Replies: 8
Views: 1672

Problem with x,y scaling

So, I have 4 pseudo-classes that I use here. Vector2 which is essentially just an X and Y value. UDim2 which has an X,Y scale as well as X,Y offset Color3 which has r,g,b values ImageLabel which has properties as such: http://i.imgur.com/an8PMsn.png UDim2 inner workings: http://i.imgur.com/gWCxpot.p...
Mon Dec 14, 2015 8:11 am
Forum: Support and Development
Topic: Transforming coordinates to screen coordinates
Replies: 1
Views: 618

Transforming coordinates to screen coordinates

I have my own Vector2-pseudoclass I use for positions and sizes of objects ( https://gist.github.com/Elmuti/a26cdf288752698a58d0 ). I should obviously have this coordinate system separate from rendering,so i need to transform these v2(x, y) -coordinates to screen coordinates that I can use love.grap...
Sat Dec 05, 2015 10:10 am
Forum: Support and Development
Replies: 1
Views: 515

I'm writing some sort of an engine/framework on top of Löve, and have a question. I have a Vector2 pseudoclass( https://gist.github.com/Elmuti/b1d37f2b5784be76a683 )that I use for Position and Velocity. My framework/engine will be very object oriented, meaning that I will have UI classes such as Fra...
Thu Jul 30, 2015 6:17 pm
Forum: Support and Development
Topic: Accessing files in a different .love file
Replies: 1
Views: 277

Accessing files in a different .love file

I'm writing a map editor for my löve game, and it would be nice to have access to textures/sprites etc. in the actual game's .love file. Is this possible to achieve? EDIT: Actually since I'll probably fuse my editor and game into separate executables, I need to access that separate love file from in...
Thu May 28, 2015 5:51 pm
Forum: Libraries and Tools
Topic: Signals & Events Module [FREE CODE]
Replies: 12
Views: 1812

Re: Signals & Events Module [FREE CODE]

Kingdaro wrote:Maybe it'd be more useful if you could have multiple connections, instead of just one?
Err lol I meant to do that but completely forgot about it, on it
Wed May 20, 2015 6:38 pm
Forum: Libraries and Tools
Topic: Signals & Events Module [FREE CODE]
Replies: 12
Views: 1812

Signals & Events Module [FREE CODE]

EDIT: Updated the ModObject url to a newer version I've made this really small but incredibly useful module that lets you create, connect, and fire custom events! It requires the "ModObject" OOP module found here: https://gist.github.com/Elmuti/76af9f55ac1cba475f26 Source code: https://gist.github.c...
Mon May 18, 2015 1:37 pm
Forum: Support and Development
Topic: [solved] Code Freezes when requiring classes
Replies: 0
Views: 465

[solved] Code Freezes when requiring classes

EDIT2: It seems that I made a class inherit itself, so it probably got stuck in a never ending loop of recursion, or something along those lines Issue fixed now! EDIT: I have narrowed the issue down, and it seems the code hangs at requiring the classes. I have no clue why it happens. The project spa...