Search found 28 matches

by 4vZEROv
Sun Jun 09, 2019 12:08 pm
Forum: Support and Development
Topic: Orbit object around another object using mouse position
Replies: 4
Views: 266

Re: Orbit object around another object using mouse position

pgimeno in the game he gave, the object orbiting stay at the same distance all the time (see webm), I don't think you can get this result without normalizing the angle ?
by 4vZEROv
Sun Jun 09, 2019 9:37 am
Forum: Support and Development
Topic: Orbit object around another object using mouse position
Replies: 4
Views: 266

Re: Orbit object around another object using mouse position

Trigonometry friend. function orbit(x,y, tx, ty, distance) local _x, _y = tx - x, ty - y local angle = math.atan2(_y, _x) return math.cos(angle)*distance + x, math.sin(angle)*distance + y end local a = {x = love.graphics.getWidth()/2, y = love.graphics.getHeight()/2} local mouse = {x = 0, y = 0} loc...
by 4vZEROv
Fri Jun 07, 2019 8:13 pm
Forum: Support and Development
Topic: [SOLVED] Dialog doesn't work on signs (I have no clue lmao)
Replies: 1
Views: 170

Re: Dialog doesn't work on signs (I have no clue lmao)

I tried but I don't understand how your code work, "txtt" become empty after ending the first conversation that's as far as I went.

You have globals everywhere and functions that call them without being passed as argument. Also your variable names are not easy to understand to say the least.
by 4vZEROv
Sun Jun 02, 2019 12:47 am
Forum: Support and Development
Topic: Some love features I think would be useful
Replies: 7
Views: 638

Re: Some love features I think would be useful

I don't understand how this would be usefull, just use a variable to stock the previous key and voila ?
by 4vZEROv
Thu May 23, 2019 11:20 am
Forum: Support and Development
Topic: How to switch ipairs without having to rewrite?
Replies: 3
Views: 788

Re: How to switch ipairs without having to rewrite?

do a function ?

Code: Select all

function loop(x)
	for i,v in ipairs(x) do 
		--stuff
	end
end
loop(opp)
loop(player)
by 4vZEROv
Tue Apr 30, 2019 9:38 am
Forum: Support and Development
Topic: Particle Editor for Love 11.2
Replies: 3
Views: 315

Re: Particle Editor for Love 11.2

last image
by 4vZEROv
Tue Apr 30, 2019 9:37 am
Forum: Support and Development
Topic: Particle Editor for Love 11.2
Replies: 3
Views: 315

Re: Particle Editor for Love 11.2

I have this (from https://github.com/santoslove/particle- ... playground) but i think i modified some things)
by 4vZEROv
Tue Apr 30, 2019 9:30 am
Forum: Support and Development
Topic: Is it possible to load a game at certain points
Replies: 10
Views: 859

Re: Is it possible to load a game at certain points

For what I can see everything draw are pushed into gfx_q by functions like gprint, grectangle ~l.72 (graphics.lua).
All in game menu are pushed line ~l.339 (graphics.lua).

I believe it's here where you want to draw some stuff.
by 4vZEROv
Tue Apr 23, 2019 10:24 pm
Forum: General
Topic: A hot potato
Replies: 4
Views: 8319

Re: A hot potato

Code: Select all

function love.update(dt)
	
	if love.keyboard.isDown("left")  then move_left()  end

end