Search found 6 matches

by BlakeBarnes00
Sat Feb 13, 2016 5:53 am
Forum: Support and Development
Topic: How to create a new item with a mouse click?
Replies: 6
Views: 3903

Re: How to create a new item with a mouse click?

Hello Blake, I assume what you meant is creating a new block at the click of the mouse, instead of repositioning the current one. Well, looking at the code in objects.lua, in this section: --Creating blocks objects.blocks = {} objects.blocks.body = love.physics.newBody(world.world, 100, 550, "...
by BlakeBarnes00
Sat Feb 13, 2016 5:51 am
Forum: Support and Development
Topic: 'then' expected near '=' when I am making a if statement for my game.
Replies: 1
Views: 10872

'then' expected near '=' when I am making a if statement for my game.

So I have been creating Space Invaders in the last little bit, and I came across this error: " Syntax error: enemy.lua:30: 'then' expected near '=' ", but I don't really understand why.. This is my code: require "player" enemies = {} enemy = {} local width = love.graphics.getWidt...
by BlakeBarnes00
Thu Feb 11, 2016 11:10 pm
Forum: Support and Development
Topic: How to create a new item with a mouse click?
Replies: 6
Views: 3903

How to create a new item with a mouse click?

So I have been learning LOVE2d for a little bit now, and I am just curious on how I would create a new "block" by clicking on the screen? I have this on my Git to show what I have been doing: https://github.com/BlakeBarnes00/Love2d ... 20-%20Ball
by BlakeBarnes00
Thu Feb 11, 2016 2:32 am
Forum: Support and Development
Topic: Need help applying Physics
Replies: 5
Views: 2738

Re: Need help applying Physics

Bump isn't physics BTW. It's just collision detection. I would say that as long as you understand aabb you could just experiment until you get the feel you want or reach a specific problem. Physics in games is something you design around your game. I'm assuming you know how to move things on the sc...
by BlakeBarnes00
Thu Feb 11, 2016 12:46 am
Forum: Support and Development
Topic: Need help applying Physics
Replies: 5
Views: 2738

Re: Need help applying Physics

sefan wrote:Take a look at Bump, viewtopic.php?f=5&t=79223
Its a nice collision detection library.
I want to know how to do this without using libraries just so I get a learning experience. Is there any tutorial for this?
by BlakeBarnes00
Wed Feb 10, 2016 5:10 am
Forum: Support and Development
Topic: Need help applying Physics
Replies: 5
Views: 2738

Need help applying Physics

So I have been relearning LUA and the LOVE engine here recently, and I have been making small little games. I have been looking into adding some physics (where I jump and then fall back down towards the ground, friction, and so forth), I have looked up some tutorials, looked at some other projects, ...