Search found 260 matches

by sphyrth
Fri Sep 22, 2017 9:52 am
Forum: Support and Development
Topic: Glitches with the automatic machine gun
Replies: 4
Views: 2965

Re: Glitches with the automatic machine gun

I got it. This is your original code

Code: Select all

function EnemyMissile(x1,x2,y1,y2)
   ...
   local angle = math.atan2((x1 - x2), (y1 - y2))
Just switch the x's an y's in the math.atan2():

Code: Select all

function EnemyMissile(x1,x2,y1,y2)
   ...
   local angle = math.atan2((y1 - y2), (x1 - x2))
by sphyrth
Fri Sep 22, 2017 9:49 am
Forum: Support and Development
Topic: Glitches with the automatic machine gun
Replies: 4
Views: 2965

Re: Glitches with the automatic machine gun

Okay, I think I got a good handle of what's going on. Let's start with your starting coordinates: function EnemyMissile(x1,x2,y1,y2) local StartX = x1/2 local StartY = y1/2 ... On this part, it seems that you want the Missiles start coming out from the CENTER of the enemy. But you first have to defi...
by sphyrth
Fri Sep 22, 2017 9:33 am
Forum: Support and Development
Topic: Glitches with the automatic machine gun
Replies: 4
Views: 2965

Re: Glitches with the automatic machine gun

So let's just get this one in:
asdfasdfasdf.png
asdfasdfasdf.png (10.26 KiB) Viewed 2956 times
The white square is you.
The green square in the middle is an AI (enemy?)
And that other green thing is the machine gun.

Now, how should your game work again?
by sphyrth
Fri Sep 22, 2017 1:47 am
Forum: General
Topic: Love cutting rectangle
Replies: 6
Views: 3165

Re: Love cutting rectangle

From what I can interpret, ShadowPenguins' problem is this: function love.draw() love.graphics.rectangle('fill', 10, 10, 100, 100) end It should print the rectangle 10 y-pixels down, but it seems to print it 0 y-pixels down. So, when I go love.graphics.print('Hello World') , the text doesn't show. B...
by sphyrth
Fri Sep 22, 2017 1:25 am
Forum: Games and Creations
Topic: Lovely Tactics Hex, a TRPG framework
Replies: 10
Views: 15204

Re: Lovely Tactics Hex, a TRPG framework

Forget about the Mini-battle Scene. Your game is great as it is.

The main thing I like about Shining Force is about Moving. It gives you the "feeling" moving freely even though it doesn't.
by sphyrth
Wed Sep 20, 2017 12:20 am
Forum: Games and Creations
Topic: Lovely Tactics Hex, a TRPG framework
Replies: 10
Views: 15204

Re: Lovely Tactics Hex, a TRPG framework

I currently can't check it right now, but will the mechanics be similar to Shining Force? I'm a fan that game.
by sphyrth
Wed Sep 20, 2017 12:00 am
Forum: General
Topic: Software to record your screen (for gameplay demos and tutorials)
Replies: 3
Views: 3531

Re: Software to record your screen (for gameplay demos and tutorials)

Since you've got OBS working, then I suggest you stick with it. All the potentials of video recording are there.
All I got is simplescreenrecorder.
by sphyrth
Mon Sep 18, 2017 12:36 am
Forum: General
Topic: Should you ever disclose the fact that a game is made with love2d when releasing a game?
Replies: 10
Views: 9352

Re: Should you ever disclose the fact that a game is made with love2d when releasing a game?

This thread reminded me of how I found Love2D in the first place: when I wanted to study the source code of Duck Marines.
by sphyrth
Fri Sep 15, 2017 5:56 am
Forum: General
Topic: Thanks I get it
Replies: 5
Views: 4060

Re: Thanks I get it

Next step is that you must familiarize yourself with Love2D's three basic functions: load , update , and draw function love.load() text = 'Hello World' x = 400 y = 300 end function love.update(dt) end function love.draw() love.graphics.draw(text, x, y) end The above code will display the same thing ...
by sphyrth
Tue Sep 12, 2017 9:32 am
Forum: General
Topic: checking if a value is not on table ?
Replies: 15
Views: 11641

Re: checking if a value is not on table ?

:rofl:
This mishap made me realize why people make it a habit to tag the name of the person they're responding to.