Search found 191 matches
- Mon Apr 15, 2019 6:49 am
- Forum: General
- Topic: [HELP] Drawable disappears the first frame
- Replies: 3
- Views: 9456
Re: [HELP] Drawable disappears the first frame
Usually, you want to set color before you draw something, not the other way around, it's more straightforward. And depending on what löve version you use, colors are in the [0,1] interval with the current versions, so {1 * 102, 1 * 51, 1 * 153, 1} is definitely wrong, unless you use something like ...
- Sat Apr 13, 2019 8:24 am
- Forum: General
- Topic: [HELP] Drawable disappears the first frame
- Replies: 3
- Views: 9456
[HELP] Drawable disappears the first frame
Hello everyone! I'm gonna get straight into it, in this project I'm currently working on my drawable image in "player.lua" disappears as soon as the program starts. I'm a bit at a loss about what I should do. Usually, my solution is to set the color to white after I've drawn something but ...
- Tue Apr 02, 2019 1:45 pm
- Forum: General
- Topic: [SOLVED] Applying velocity (on X-axis) to a physics body
- Replies: 5
- Views: 9421
Re: [HELP] Applying velocity (on X-axis) to a physics body
With box2d you don't want to set the position directly because it teleports the body (which is kind of pointless since it circumvents the physics system). Ideally you should use impulses and forces, this way your body will be able to react to collisions with other bodies. Furthermore, what you have...
- Tue Apr 02, 2019 1:35 pm
- Forum: General
- Topic: [SOLVED] Applying velocity (on X-axis) to a physics body
- Replies: 5
- Views: 9421
Re: [HELP] Applying velocity (on X-axis) to a physics body
So what's the problem? Ah sorry if I wasn't clear enough. The problem that I have is inside Player.lua s update in: if love.keyboard.isDown("left", "a") and self.velocityX > -self.maxSpeed then -- Right here -- self.Body:setX(Player.Body:getX() - self.velocityX - self.Accelerati...
- Tue Apr 02, 2019 8:24 am
- Forum: General
- Topic: [SOLVED] Applying velocity (on X-axis) to a physics body
- Replies: 5
- Views: 9421
[SOLVED] Applying velocity (on X-axis) to a physics body
Hello everyone! I'm working on a 2D platformer that uses box2d physics (I believe that's what LÖVE is using right?) and I'm trying to apply velocity to my Physics body object (in this case my player object). What I want is to create a platformer that moves around in a similar fashion to Mario from N...
- Wed Feb 20, 2019 1:27 pm
- Forum: General
- Topic: [SOLVED] I want to create a simple menu but don't know where to start
- Replies: 2
- Views: 7824
[SOLVED] I want to create a simple menu but don't know where to start
Hello everyone! I'm currently working on a Breakout clone and I've come to the point where I want to implement a simple enough menu system for the game. This is what I want in my game: A Main Menu From the Main Menu, I can go and 'Play' the game From the Main Menu, I can find 'How to Play' the game ...
- Mon Feb 18, 2019 10:36 am
- Forum: General
- Topic: [SOLVED] Command prompt in Zerobrane
- Replies: 3
- Views: 4129
Re: [HELP] Command prompt in Zerobrane
I love you, thanks!steVeRoll wrote: ↑Fri Feb 15, 2019 5:09 pm You can do this with the console field in love.conf.Code: Select all
--conf.lua function love.conf(t) t.console = true end
- Fri Feb 15, 2019 1:56 pm
- Forum: General
- Topic: [SOLVED] Command prompt in Zerobrane
- Replies: 3
- Views: 4129
[SOLVED] Command prompt in Zerobrane
Hello everyone! I've very recently switched to Zerobrane from Atom (for debugging purposes) which I really like so far! However, one thing I really liked with Atom as that whenever I launched the game, I could have the command prompt window launched beside my love2d window. I'm trying to achieve som...
- Wed Feb 13, 2019 8:05 am
- Forum: General
- Topic: [SOLVED] (breakout clone) powered up big ball doesn't remove several bricks at once
- Replies: 2
- Views: 3137
Re: [SOLVED] (breakout clone) powered up big ball doesn't remove several bricks at once
When you remove table entries in a loop like this, entries will be skipped. The simplest solution is to iterate backwards over the bricks when your remove them. it is as you said, with a little help from a programmer friend to explain exactly it works by using this: for i = #bricksLineController.br...
- Tue Feb 12, 2019 4:01 pm
- Forum: General
- Topic: [SOLVED] (breakout clone) powered up big ball doesn't remove several bricks at once
- Replies: 2
- Views: 3137
[SOLVED] (breakout clone) powered up big ball doesn't remove several bricks at once
Hello everyone! I'm currently working on a power-up for my endless breakout clone where the ball becomes big (with the intent to remove several bricks at once). Upon collision, the big ball collides with a set of 3 bricks. when the ball collides with the bricks, it removes the first and the third br...