Search found 174 matches

by Andlac028
Thu May 28, 2020 6:15 pm
Forum: Support and Development
Topic: For loop problem
Replies: 11
Views: 8031

Re: For loop problem

Something like this? If clicked in any small rectangle, set clickedInRectangle to true, else its false and at the end, check whetever clickedInRectangle is true or false. function love.update(dt) -- getting mouse x, y positions (irrespective of clicks) mouse_x = love.mouse.getX() mouse_y = love.mous...
by Andlac028
Sat May 23, 2020 4:52 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 7000

Re: Load from file

Just a little more question, please. My native language uses hooks, commas, rings ... (for example: kůň, třmen, důrazně...) When I accidentally load a word from CSV / TXT, it gives an error: main.lua: 8 UTF-8 decoding error: Ivalid UTF-8 Where can I set this up? Have you saved file with UTF-8 encod...
by Andlac028
Mon Apr 27, 2020 9:26 am
Forum: Support and Development
Topic: Android portrait screen orientation & vertex shader error
Replies: 7
Views: 7156

Re: Android portrait screen orientation & vertex shader error

Are you resizing or setting windows width/height? (in conf.lua or by love.window module?) Because you can change screen orientation by setting window width & height (if width>height -> landscape; height>width -> portrait) if I'm not wrong
by Andlac028
Tue Apr 14, 2020 2:28 pm
Forum: General
Topic: Problems with a simple loop
Replies: 12
Views: 7500

Re: Problems with a simple loop

Hi and welcome to the forums,
in function render, you are using while loop and it don't have the end, because of y is not changing in time - its still the same value = its still < 80. Try to replace it with if y<80 do ... end
by Andlac028
Sun Apr 12, 2020 2:10 pm
Forum: Support and Development
Topic: How to make tone signal and multiple tone signals?
Replies: 5
Views: 4012

Re: How to make ton signal and multiple ton signals?

I think, you thought SD:setSample (not SD:setSampleCount in for loop) and you must set sample position (as first parameter) - its variable i in for loop
by Andlac028
Thu Apr 09, 2020 3:03 pm
Forum: Support and Development
Topic: Wiki version picker not working correctly
Replies: 0
Views: 4344

Wiki version picker not working correctly

Hi! LÖVE wiki version picker don't work correctly - Template newinoldin is not filtered by versions. When I looked at source code, I found these errors: 1. In function filterVersion in withAddedRemoved: versions are not compared correctly and element.style.display=no null, but 'none' (null unsets th...
by Andlac028
Fri Apr 03, 2020 4:54 pm
Forum: Support and Development
Topic: attempt to index local 'button' (a number value)
Replies: 2
Views: 2503

Re: attempt to index local 'button' (a number value)

It is because the button (as argument from function love.mousereleased) replaces your table called button (one variable cannot refer to two values). Try to rename one of that. There is an example to fix it: function love.mousereleased(x, y, pressedButton) if button == 4 then if gm.screen.i == 2 then...
by Andlac028
Tue Jan 28, 2020 5:23 pm
Forum: Support and Development
Topic: Help(this is mobile) the scaling messing up the accuracy on mobile.HELP?
Replies: 2
Views: 1986

Re: Help(this is mobile) the scaling messing up the accuracy on mobile.HELP?

First of all: please submit .love file, or use [code][/code] for your code.
Try to scale touch press position, because you scales graphics, but touches are in window pixels
by Andlac028
Sun Nov 24, 2019 2:11 pm
Forum: Support and Development
Topic: Question about 2 dimensional table.insert/remove
Replies: 2
Views: 2558

Re: Question about 2 dimensional table.insert/remove

Hello, You have a table, which have another 3 tables, that is equal to: map={} map[1]={1,1,1,1} map[2]={0,0,0,0} map[3]={2,3,2,3} --or map={[1]={1,1,1,1},[2]={0,0,0,0},[3]={2,3,2,3}} So if you want to edit map[3] (third row of table map) then you must do: table.insert(map[3],5) --or map[3][#map[3]+1...
by Andlac028
Wed Jun 19, 2019 5:25 pm
Forum: Support and Development
Topic: A question about music
Replies: 13
Views: 13145

Re: A question about music

Simply put if music:isPlaying( ) == false then math.randomseed( os.time() ) math.random(); math.random(); math.random(); math.random(); math.random() music = love.audio.newSource("music/mus_"..math.random(11)..".mp3", "stream" ) love.audio.play( music ) music:setVolume(...