Search found 1264 matches

by pgimeno
Sat Oct 20, 2018 4:59 am
Forum: Support and Development
Topic: How to export PNG screenshot with transparency?
Replies: 1
Views: 30

Re: How to export PNG screenshot with transparency?

You can try drawing to a canvas instead of the screen, and saving via Canvas:newImageData . Note however that OpenGL does not support proper alpha compositing without a custom shader, so if you use normal blending mode, the PNG you will obtain will have premultiplied alpha, which is not supported by...
by pgimeno
Thu Oct 18, 2018 12:47 am
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 485

Re: Mousepressed not working?

I'll tell you it's just as frustrating on my end. If I am not giving you something you think you need to see to solve the issue then ask away, I am not an experienced coder so I can't guess what you need to hear. I have to say that I don't get what you mean with "two mousepressed events" if you cou...
by pgimeno
Wed Oct 17, 2018 4:37 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 485

Re: Mousepressed not working?

Thanks for your help. Where do I start to analyse why my mousepressed event isn't working? I am pretty clueless at this point. You may have two mousepressed events. You may be declaring it somewhere where it does not execute. The print may be working but not being shown in the output for some reaso...
by pgimeno
Wed Oct 17, 2018 1:29 pm
Forum: Support and Development
Topic: Printing Machine
Replies: 5
Views: 133

Re: Printing Machine

Can you explain what you mean by printing machine?

Because this is a printing machine
Image

Do you meant a typewriter effect, where the text appears letter by letter instead of all at a time?
by pgimeno
Tue Oct 16, 2018 7:45 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 485

Re: Mousepressed not working?

Well, it's hard to help any further without having something we can look into by ourselves. The code in the OP definitely can't help diagnosing why your love.mousepressed event isn't working.
by pgimeno
Tue Oct 16, 2018 3:00 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 485

Re: Mousepressed not working?

xpali2 wrote:
Tue Oct 16, 2018 1:31 pm
In fact, it even doesn't print anything when I put the print function in love.mousepressed itself.
Are you sure you're monitoring the console window instead of the game window? If you're under Windows, are you using lovec.exe?
by pgimeno
Tue Oct 16, 2018 2:48 pm
Forum: Support and Development
Topic: Word Processor
Replies: 8
Views: 235

Re: Word Processor

utf8 is a LÖVE built-in library. Other built-in libraries are socket and enet, and from LuaJIT, ffi and jit.
by pgimeno
Tue Oct 16, 2018 11:34 am
Forum: Support and Development
Topic: LOVE can't see the game
Replies: 6
Views: 189

Re: LOVE can't see the game

Can you type this in a terminal and tell us the result?

Code: Select all

dir /s C:\Lua\ZBS\myprograms\games\eye.love
Also, what archiver have you used for eye.love?
by pgimeno
Tue Oct 16, 2018 2:50 am
Forum: Support and Development
Topic: Menace of the Infinitely Spinning Box2D Polygon
Replies: 1
Views: 111

Re: Menace of the Infinitely Spinning Box2D Polygon

I think that the problem is that you're creating weld joints of interpenetrating bodies. It's not the first time I see such a system go crazy.

Try creating a single body with multiple shapes/fixtures instead.
by pgimeno
Mon Oct 15, 2018 12:03 pm
Forum: Support and Development
Topic: [SOLVED] Mode 7 + Collision
Replies: 2
Views: 181

Re: Mode 7 + Collision

user.x and user.y contain 400 and 450 respectively, and they don't seem to change. I think you want camera.x and camera.y.

Also, user.h is of no use here, because it's the apparent height in the z direction. If you want the sprite to appear to have a square base, use user.w twice.