Search found 36 matches

by NoAim91
Sun Jan 20, 2019 6:41 pm
Forum: General
Topic: Splitscreen Camera Modul?
Replies: 0
Views: 2031

Splitscreen Camera Modul?

Hello there!

Does anyone know a good camera tool for creating a game with a splitscreen mode? .. or at least a guide how I would create one?

Currently I´m using humpcamera, which is not a good option for a splitscreen I guess.

The "problem" I have is: I don´t like to draw unnecessary things twice
by NoAim91
Wed Aug 16, 2017 10:41 am
Forum: General
Topic: Suggestion: Doubleclick callback
Replies: 3
Views: 989

Suggestion: Doubleclick callback

Hi there

it would be cool to have a love.mouse.doubleclick funtion, like the other love.mouse.(mousemoved / mousepressed / mousereleased) callback functions.

I have made the funciton myself, but it would be cool to have it build in love directly :D
by NoAim91
Sat Jun 17, 2017 7:29 am
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

@zorg: nope. The thread starts and the main thread should update itself while the thread is doing its thing ... its not directly waiting. If I use 1.000 as input it works. The Table is created with 1000x1000 entrys. But If I choose 10.000 it dies. However ... I could need something which prevents th...
by NoAim91
Fri Jun 16, 2017 8:54 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

okay, I thought I could solve my problem with threads, but it doesn´t work. My problem -> game freeze because the for loop is too big. main.lua function love.load() t = love.thread.newThread("thread.lua") c1 = love.thread.newChannel() input = 10000 c1:push(input) t:start(c1) output = 0 end function ...
by NoAim91
Fri Jun 16, 2017 4:10 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

@zorg: yeah, the print doesn´t work ... and it should not return 10, it should return 13.... I guess the output = c1:demand() takes the c1:push(input) befor the thread input = c1:demand() can take the variable.
by NoAim91
Fri Jun 16, 2017 3:56 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

@bartbes: this code doesn´t work :-/ I changed something that it work, but it is not finaly right: main.lua function love.load() t = love.thread.newThread("thread.lua") c1 = love.thread.newChannel() input = 10 c1:push(input) t:start(c1) end thread.lua local c1 = ... input = c1:demand() print("thread...
by NoAim91
Fri Jun 16, 2017 3:25 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

thank you! :-)

Ok, now how I get the resault ( a ) out of the thread? XD
by NoAim91
Fri Jun 16, 2017 3:04 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

Code: Select all

local input = input

function test(input)
  a = input
  a = a + 3
  print(a)
  return a
end

test(input)
Thread error!
thread.lua:5: attempt to perform arithmetic on global 'a' (a nil value)

line 5 is a = a + 3

so what?! define a = input is fine but after that a is unknown?! o.O
by NoAim91
Fri Jun 16, 2017 2:30 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

Re: How works love.threads?

@zorg: nope, doesn´t work. Maybe I don´t need channels for this. I tryed this --main.lua function love.load() t = love.thread.newThread("thread.lua") input = 10 output = t:start( input ) print(output) end --thread.lua local input = input function test(input) a = 3 a = a + input print(a) return a end...
by NoAim91
Fri Jun 16, 2017 1:05 pm
Forum: Support and Development
Topic: How works love.threads?
Replies: 14
Views: 4974

How works love.threads?

Hey, the love.thread thing really need a bit more description at the wiki. I like to input a variable in the thread and get a return after a function call. In this case I put 10 in, the function should add 3 and the return should be 13. But the function inside the thread doesn´t get called. and in g...