Search found 14 matches

by palmettos
Tue Jul 12, 2016 2:45 pm
Forum: Support and Development
Topic: Screen Collision [BEGINNER]
Replies: 3
Views: 3164

Re: Screen Collision [BEGINNER]

Your player is going off-screen because you're updating its positions according to its speed after the collision check. Here's what's happening: love calls update -> you check the player's position and set the position inside the playable area -> you update the player's position according to its spe...
by palmettos
Fri Jul 08, 2016 2:32 pm
Forum: Support and Development
Topic: Hump & transition image effects
Replies: 14
Views: 11308

Re: Hump & transition image effects

The number argument to Timer.after is the number of seconds Timer waits to call the function argument after Timer.after is called. At what time the entire love program starts is irrelevant. Say you put Timer.after(3, function() print('hello') end) in the love.mousepressed callback. Anytime the user ...
by palmettos
Sun May 29, 2016 8:17 pm
Forum: Support and Development
Topic: Weird error on testing mesh code from wiki
Replies: 1
Views: 1544

Re: Weird error on testing mesh code from wiki

I fixed it. The problem is that the example I pulled code from doesn't set the u and v texture coordinates in the vertex tables, as the other examples do. I assumed they defaulted to some value, but they do not. They need to be set explicitly. The example is wrong in the context of 0.9.0. Here is th...
by palmettos
Sun May 29, 2016 7:11 pm
Forum: Support and Development
Topic: Weird error on testing mesh code from wiki
Replies: 1
Views: 1544

Weird error on testing mesh code from wiki

I'm running this code (simplified, but taken from the wiki article on meshes: https://love2d.org/wiki/love.graphics.newMesh [see example 'Creates a circle and draws it more efficiently than love.graphics.circle.']) on version 0.9.0: function love.load() local vertices = {{0, 0}} local segments = 40 ...