Thanks for the help, got it now. Must be my age
Search found 84 matches
- Wed Feb 21, 2018 8:13 pm
- Forum: General
- Topic: Grab part of screen, draw, replace
- Replies: 4
- Views: 2785
- Wed Feb 21, 2018 7:11 pm
- Forum: General
- Topic: Grab part of screen, draw, replace
- Replies: 4
- Views: 2785
Re: Grab part of screen, draw, replace
Hehe yeah that's pretty much what I want to do (well, do a normal draw, copy part of that to the intermediate target etc) just can't see how atm
- Wed Feb 21, 2018 5:18 pm
- Forum: General
- Topic: Grab part of screen, draw, replace
- Replies: 4
- Views: 2785
Grab part of screen, draw, replace
I'm sure I've done this before, but I haven't done any coding of late and can't recall how to go about it: I need to copy part of the back-buffer (or whatever its called these days), draw some stuff on it then copy it back to the screen before it's displayed. The part being copied, drawn to then cop...
- Sat Dec 23, 2017 10:12 pm
- Forum: Games and Creations
- Topic: Bass Lover
- Replies: 10
- Views: 9012
Re: Bass Lover
Looks fun, must read up more of your links to understand it (I know less than ivan about fishing) as some of the jargon meant nothing to me. At first glance, I couldn't decide what some of the sprites were until I rammed them! I think the kb controlled boat movement is ok, it might not be immediatel...
- Sat Dec 23, 2017 8:31 am
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1791
- Views: 1496289
- Tue Dec 19, 2017 4:02 pm
- Forum: General
- Topic: [SOLVED] How to make a "fill in the blank" puzzle using user input?
- Replies: 3
- Views: 2553
Re: How to make a "fill in the blank" puzzle using user input?
Depends! If you wanted to allow the player to click on a blank space and then enter a letter you could do something like this: Lets say your 'blanks' are represented by boxes 64x64 each at top left of the screen, When the user clicks the mouse (and mouse y co-ord is less than 64, you work out which ...
- Mon Dec 18, 2017 8:59 am
- Forum: Support and Development
- Topic: rotation question
- Replies: 20
- Views: 12624
Re: rotation question
Tidied that up a little in case anyone else finds it useful: local LINELENGTH = 40 local CENTREX, CENTREY = 400, 200 local TURNSPEED = 80 local lineAngle = 90 function love.draw() love.graphics.setColor(255, 255, 255, 255) love.graphics.ellipse("fill", CENTREX, CENTREY, 10, 10) love.graphi...
- Sun Dec 17, 2017 9:11 pm
- Forum: Support and Development
- Topic: rotation question
- Replies: 20
- Views: 12624
Re: rotation question
EDIT Still not right (lol) missed another check, shoudl be ok now: function love.load() love.mouse.setVisible(false) lAngle = 90 dAngle = 0 end function love.draw() love.graphics.setColor(255, 255, 255, 255) love.graphics.ellipse("fill", mX, mY, 4, 4) love.graphics.ellipse("fill"...
- Sun Dec 17, 2017 8:53 pm
- Forum: Support and Development
- Topic: rotation question
- Replies: 20
- Views: 12624
Re: rotation question
And you did have params wrong way round in your code:
io.write(i, ' : ', math.atan2(x, y), '\t')
io.write(i, ' : ', math.atan2(x, y), '\t')
- Sun Dec 17, 2017 8:50 pm
- Forum: Support and Development
- Topic: rotation question
- Replies: 20
- Views: 12624
Re: rotation question
Now at computer with love installed. This does the trick (but still quick and dirty)... function love.load() love.mouse.setVisible(false) lAngle = 90 dAngle = 0 end function love.draw() love.graphics.setColor(255, 255, 255, 255) love.graphics.ellipse("fill", mX, mY, 4, 4) love.graphics.ell...