Search found 8 matches

by ITISTHEBKID
Mon Jul 08, 2019 4:46 pm
Forum: Support and Development
Topic: How to move one row of a grid?
Replies: 1
Views: 1836

How to move one row of a grid?

I have every cell of a grid in a table. How would I go about shifting all the cells over and moving the last row to the first row?
by ITISTHEBKID
Thu Apr 25, 2019 2:50 am
Forum: Support and Development
Topic: Why is 2-2 = 8.8817841970013e-016
Replies: 6
Views: 3994

Re: Why is 2-2 = 8.8817841970013e-016

Thanks, I understand now. Is it worth it to put something like

Code: Select all

if x < .01 then 
	x = 0
end
or will it not impact preformance
by ITISTHEBKID
Thu Apr 25, 2019 1:44 am
Forum: Support and Development
Topic: Why is 2-2 = 8.8817841970013e-016
Replies: 6
Views: 3994

Why is 2-2 = 8.8817841970013e-016

Here is my code: io.stdout:setvbuf("no") function love.load() bope(6,2) end function bope(xs,w) for i=1,100,1 do numb = (i/xs%1)*xs if numb == 0 then numb = xs end x = (w * numb) print(x,w,x-w) end end as you can see at the bottom, it prints x,w and then x-2. After the first iteration, eve...
by ITISTHEBKID
Mon Apr 22, 2019 10:13 pm
Forum: Support and Development
Topic: Help with shaders
Replies: 2
Views: 3895

Help with shaders

I currently have this code: [[ vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords ){ vec4 pixel = Texel(texture, screen_coords); vec2 coords = vec2(texture_coords.x,screen_coords.y+1); vec4 Upixel = Texel(texture,coords); if (Upixel.a < pixel.a){ float average = (Upixel....
by ITISTHEBKID
Sun Jan 06, 2019 10:10 pm
Forum: Support and Development
Topic: Zoom to center instead of top-left
Replies: 1
Views: 1728

Zoom to center instead of top-left

Hi, simple question with a presumably simple answer. How do I zoom to the center instead of the top left? I have an XScale and YScale variable, and when things are drawn, they are drawn to the scale of these variables: love.graphics.draw(BG,deltaX,deltaY,0,XScale,YScale) When this zooms, it zooms to...
by ITISTHEBKID
Sat Nov 17, 2018 8:08 pm
Forum: Support and Development
Topic: Trouble With Tables [SOLVED]
Replies: 5
Views: 4424

Re: Trouble With Tables

Thanks so much!
by ITISTHEBKID
Sat Nov 17, 2018 5:19 pm
Forum: Support and Development
Topic: Trouble With Tables [SOLVED]
Replies: 5
Views: 4424

Re: Trouble With Tables

Is there a way to make it so things can go through Z into A?
by ITISTHEBKID
Sun Nov 11, 2018 9:57 pm
Forum: Support and Development
Topic: Trouble With Tables [SOLVED]
Replies: 5
Views: 4424

Trouble With Tables [SOLVED]

Code: Select all

	function love.load()
	A = {B = 0, C = 0}
	Z  = {A.B = 3,}
	print(Z.A.B)
	end
Why does this code spit out an error?