Search found 687 matches

by Ref
Sun Dec 17, 2017 6:40 pm
Forum: Support and Development
Topic: rotation question
Replies: 20
Views: 3245

Re: rotation question

Something like this?
Ops, wrong file.
by Ref
Thu Aug 17, 2017 9:24 pm
Forum: Support and Development
Topic: [SOLVED] Error: Attempt to call upvalue (a nil value)
Replies: 2
Views: 1522

Re: Error: Attempt to call upvalue (a nil value)

Code: Select all

local Explosion require 'entities.explosion'
No '=' so no Explosion
by Ref
Mon May 29, 2017 1:34 am
Forum: Support and Development
Topic: Unable to play videos on LÖVE
Replies: 11
Views: 3653

Re: Unable to play videos on LÖVE

See attached file.
Video plays on Love 10.1 but audio is out of sync.
Video does not play but audio does on Love.10.2.
System Windows 7
Is there an example of a video that does play correctly?
by Ref
Tue May 16, 2017 2:57 am
Forum: Support and Development
Topic: Simulated 3D sprite rotation in 2D
Replies: 4
Views: 1808

Re: Simulated 3D sprite rotation in 2D

Maybe you could modify this.
by Ref
Mon May 15, 2017 11:47 pm
Forum: Support and Development
Topic: Simulated 3D sprite rotation in 2D
Replies: 4
Views: 1808

Re: Simulated 3D sprite rotation in 2D

Something like this?
by Ref
Tue Apr 25, 2017 5:44 pm
Forum: General
Topic: setting rectangle angle ? (not image)
Replies: 2
Views: 976

Re: setting rectangle angle ? (not image)

Example: function rotatingRectangle( mode,x,y,w,h,a,ox,oy,r ) ox = ox or 0 -- if ox & oy not provided, rotate around upper left corner oy = oy or 0 -- if ox,oy = w/2,h/2 then rotation is around center a = a or 0 -- if no angle provided, angle assumed to be zero r = r or 5 -- corner radius love.graph...
by Ref
Wed Apr 19, 2017 5:53 pm
Forum: Support and Development
Topic: Pattern matching
Replies: 5
Views: 1350

Re: Pattern matching

I'm not too good with pattern matching but what's wrong with:

Code: Select all

str = 'wood|1000'
sep = string.find( str, '|' )
word, value = string.sub( str, 1, sep-1 ), str:sub( sep+1, #str )
or maybe

Code: Select all

word, value = string.match(str, "(%a+)|(%d+)")
by Ref
Wed Apr 19, 2017 2:53 pm
Forum: Support and Development
Topic: [SOLVED] Bezier Curves, how to trace a line?
Replies: 21
Views: 6195

Re: Bezier Curves, how to trace a line?

Was able to fix constant speed issue for spline but not for Bezier curve.
For what it's worth (drag points to see that speed remains constant)
Best
by Ref
Wed Apr 19, 2017 2:37 am
Forum: Support and Development
Topic: [SOLVED] Bezier Curves, how to trace a line?
Replies: 21
Views: 6195

Re: Bezier Curves, how to trace a line?

May be something like you want. (old love with extraneous code)
Click on control points to see effect,