Search found 7 matches
- Fri Jan 27, 2017 6:42 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
1 question code I end up with, and it looks like: https://a.desu.sh/mecurr.png (reverse rainbow colors) for x = 2, 27 do love.graphics.setColor(238, 130, 238) love.graphics.print(string.char(string.byte("A") + x - 2), (x - 1) * defaulPixelSize, -1) end for x = 28, 53 do love.graphics.setCo...
- Fri Jan 27, 2017 6:04 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
Was able to do the way I want for first question with this code: for x = 2, 60 do love.graphics.setColor(131, 139, 139) love.graphics.print(string.char(string.byte(letters[1]) + x - 2), (x - 1) * defaulPixelSize, 0) end end So it backs to A here. But starts drawing from second position just as I wan...
- Fri Jan 27, 2017 5:50 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
Welcome to the forums! 3) The code in this question is not correct. love.graphics.scale(0,5,0,5) should be love.graphics.scale(0.5,0.5). In most programming languages, a comma is used to separate arguments in a function, and a period for numbers. 4) You can do something like: function love.keypress...
- Fri Jan 27, 2017 5:16 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
Mostly was able to make first question work: for x = 2, 60 do --love.graphics.setColor(0, 0, 0, 255) love.graphics.setColor(60, 150, 146, 50) love.graphics.print(string.char(string.byte("A") + x), (x - 1) * defaulPixelSize, 0) end Unfortunately it starts from B, but not from A even when x=...
- Fri Jan 27, 2017 4:01 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
Found nice colorpiker here: viewtopic.php?f=5&t=80492
But have no idea how to execute it in small window on click, instead running it on top of my game. Tried to load it like gamestate with hump plugin without success. Ideas?
But have no idea how to execute it in small window on click, instead running it on top of my game. Tried to load it like gamestate with hump plugin without success. Ideas?
- Fri Jan 27, 2017 1:22 pm
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
Re: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
Was able to partly solve question two, without any picker yet. But at least now I know how to select and color specified rectangle. This tutorial helped me with it: https://simplegametutorials.github.io/life/ So yes, basically now I need to figure out some function to draw picker with common colors ...
- Fri Jan 27, 2017 7:36 am
- Forum: Support and Development
- Topic: 4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
- Replies: 9
- Views: 6018
4 question so far (next letters, color picker/change color, scale/zoom on key, reverse key)
1. I trying to draw letters vertically in alphabet order: Thats what I have now and it draws only next letter ('B') in my example letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "K", "L&q...