Search found 4 matches

by dalmuti
Sat Feb 27, 2016 9:27 pm
Forum: General
Topic: love.math.noise
Replies: 5
Views: 3547

Re: love.math.noise

thanks for the help, ironed out a few things with that, but i'm running into the issue that when I close the program and reopen it I get the same values. How can I have a random set of numbers each time?
by dalmuti
Wed Feb 24, 2016 9:26 pm
Forum: General
Topic: love.math.noise
Replies: 5
Views: 3547

love.math.noise

for i=1, 10, do value = love.math.noise(i) print(value) end I'm trying to create a Perlin noise function. From what I gathered this is a build in function in lua that given an x value it returns a value between 0 and 1, but when I run the loop above I get the same value of .5 for every i variable i...
by dalmuti
Fri Feb 12, 2016 7:00 pm
Forum: General
Topic: aabb collision need help...
Replies: 2
Views: 2224

Re: aabb collision with metatables? need help

the first method works, but I see how that is repetitive, so trying to avoid it and go with the second method. I most likely missing something, but aren't the i and j values just pointing to a position in the table? You would then you would call the table with obj , wouldn't properly work unless I c...
by dalmuti
Fri Feb 12, 2016 6:02 am
Forum: General
Topic: aabb collision need help...
Replies: 2
Views: 2224

aabb collision need help...

obj = {} function obj_create() -- issential: y x,y,w,h that im using in aabb to detect collision when the rectangle is created. table.insert(obj, {x=0, y=0, width=32, height=32, xspeed=0, yspeed=true}) end i have a timer set to create an obj every so many secands, and that is added to the table of o...