Search found 15 matches

by ccde
Tue Jan 19, 2016 9:11 pm
Forum: Support and Development
Topic: Screen Shake effect
Replies: 4
Views: 5292

Re: Screen Shake effect

There is an example in the documentation of hump . If you don't want to use hump, this should work (untested, and should be adapted for use in your game): local t, shakeDuration, shakeMagnitude = 0, -1, 0 function startShake(duration, magnitude) t, shakeDuration, shakeMagnitude = 0, duration or 1, ...
by ccde
Tue Jan 19, 2016 8:02 pm
Forum: Support and Development
Topic: Screen Shake effect
Replies: 4
Views: 5292

Screen Shake effect

I am trying to implement a screen shake effect that occurs each time an enemy is killed in my game, however I can't figure out for the life of me how to do so. Can anyone help me out here? Been stuck for a day or two now trying to get this working. Thanks :)
by ccde
Fri Jun 26, 2015 7:06 pm
Forum: Support and Development
Topic: Is there a way to increase a value when I run my game?
Replies: 2
Views: 1035

Re: Is there a way to increase a value when I run my game?

Each variable in your game will be reset each time you launch it, so you'll have to keep track in a file. Something like this: function love.load() timesRun = love.filesystem.read("track.txt") or 0 timesRun = timesRun + 1 love.filesystem.write("track.txt", timesRun) end function...
by ccde
Fri Jun 26, 2015 5:16 pm
Forum: Support and Development
Topic: Is there a way to increase a value when I run my game?
Replies: 2
Views: 1035

Is there a way to increase a value when I run my game?

Is there a way I can increase a variable in my game each time I run the game? I want to add a kind of dynamic build number for each time I run the game, but I can't find out a way to increase the value by x amount each time I run the game.
by ccde
Sat Jun 13, 2015 3:46 pm
Forum: Support and Development
Topic: Problems with clicking menu buttons
Replies: 2
Views: 1025

Problems with clicking menu buttons

Hey everybody. I am currently working on adding a menu to my game, however clicking buttons seems to do nothing. It's frustrating me now, because there is no error and I cannot find for the life of me a reason why this wont work. Here is the code. function button_click(x, y) for i,self in ipairs (bu...
by ccde
Sat Jan 10, 2015 11:09 am
Forum: Libraries and Tools
Topic: My First 3D Test
Replies: 5
Views: 2489

Re: My First 3D Test

Looking great! Your graphics, or placeholders? Will you add acceleration and angular acceleration? Those really make a space game feel nice. I used to make a 3D space game before I found Löve (pun intended) - one thing I noticed is that vertical rotation is horrible to deal with (gimbal lock, sucks...
by ccde
Sat Jan 10, 2015 11:08 am
Forum: Libraries and Tools
Topic: My First 3D Test
Replies: 5
Views: 2489

Re: My First 3D Test

You kinda just took the script from oysi's first 3d tutorial and added a few pictures. Not insinuating there's anything wrong with watching tutorials, But copying a script from a tutorial, Making a few minor changes and then saying "this is what i came up with" is a bit sketchy. I didn't ...
by ccde
Fri Jan 09, 2015 8:36 pm
Forum: Libraries and Tools
Topic: My First 3D Test
Replies: 5
Views: 2489

My First 3D Test

Hi. I am a bit new to Love2D, only started a few months ago, but I decided now to try and make a sort of 3D game in Love. This is what I came up with. It's not great, but its more of just a demo to show off how easy I thought it was to make believable 3D in Love. It's actually quite a simple concept...
by ccde
Sun Dec 21, 2014 11:21 pm
Forum: Support and Development
Topic: How to make an image constantly scroll?
Replies: 6
Views: 4368

Re: How to make an image constantly scroll?

Well, I'm not really sure what might be going wrong honestly. However, I took a look at the code you posted in your opening post and have a comment. I noticed that you are using ImageDatas vs Images for the most part and am curious as to why? If I remember right, ImageDatas in Love2d are images on ...
by ccde
Sat Dec 20, 2014 6:45 pm
Forum: Support and Development
Topic: How to make an image constantly scroll?
Replies: 6
Views: 4368

Re: How to make an image constantly scroll?

Well micha is perfectly right, but thought I'd just demonstrate it this as, incidentally, I did this for a little game I put together earlier this year. Here is some example code that will do what you want. Well commented, so you can follow. --initialization code or whatever background_image = --wh...