Search found 8 matches

by Freonce
Thu Aug 19, 2010 8:20 pm
Forum: Support and Development
Topic: Getting force from an angle? [Solved]
Replies: 6
Views: 3910

Re: Getting force from an angle? [Solved]

Everything is working alright now. Just have some velocity bugs I need to work out. Thanks again everyone!
:awesome:
by Freonce
Wed Aug 18, 2010 6:59 pm
Forum: Support and Development
Topic: Getting force from an angle? [Solved]
Replies: 6
Views: 3910

Re: Getting force from an angle?

Awesome! Thanks for all the replies. I think that little snippet of code is just want I need. I was trying to use math.atan2 for some reason... :P I'll be sure to read those links as well. Understanding the why is a key part to learning all this, and having it stick. I'll post an update when I get m...
by Freonce
Tue Aug 17, 2010 9:11 pm
Forum: Support and Development
Topic: Getting force from an angle? [Solved]
Replies: 6
Views: 3910

Getting force from an angle? [Solved]

Hey there. I'm trying to start my second game using Lua and I decided to make a lunar lander game. It's going alright so far, but the main area I'm having trouble with is getting a correct force applied to my ship depending on its angle. Can anyone point me in the right direction as to what I could ...
by Freonce
Fri Jul 30, 2010 6:39 pm
Forum: Support and Development
Topic: Single mouse button an issue?
Replies: 3
Views: 3115

Re: Single mouse button an issue?

But when I try to run the code in the tutorial (the code meant to only change the text when mouse button 1 is pressed) Are you talking about the using input tutorial? I gave it a spin and it worked ok...thought I am using a PC so I can't say if its due to the one button or not. function love.load()...
by Freonce
Thu Jul 29, 2010 9:33 pm
Forum: Support and Development
Topic: Scaling with a mousepress.
Replies: 6
Views: 4682

Re: Scaling with a mousepress.

Which examples? We need to know which ones propagate these horrible lies so we can extinguish them. I was working off of the Hamsterball tutorial. I think it's right and its working now so no help is needed with this problem anymore thanks. I've actually moved on to the physics stuff and am trying ...
by Freonce
Wed Jul 28, 2010 7:32 pm
Forum: Support and Development
Topic: Scaling with a mousepress.
Replies: 6
Views: 4682

Re: Scaling with a mousepress.

The main issue is that you define the love.mousepressed callback inside the love.update callback.
Care to explain why? What I've seen from other examples shows the the love.mousepressed inside the update function. Doesn't this make sure that the key press is checked every second?
by Freonce
Tue Jul 27, 2010 7:17 pm
Forum: Support and Development
Topic: Scaling with a mousepress.
Replies: 6
Views: 4682

Re: Scaling with a mousepress.

lol....ok I guess I jumped the gun a little. After some more poking around I found a solution to my problem, and i figured I'd share. I replaced the love.mousepressed with love.mouse.isDown and had the incremental value added not multiplied. function love.update(dt) x, y = 400 , 300 if love.keyboard...
by Freonce
Tue Jul 27, 2010 6:57 pm
Forum: Support and Development
Topic: Scaling with a mousepress.
Replies: 6
Views: 4682

Scaling with a mousepress.

Hi guys, New Love type person here and I'm trying to figure all this out as best I can, but I've run into a problem. I searched the forums and haven't found this specific problem so thanks in advance. I'm trying to get an image to scale larger over time as a mouse button is pressed down. As it stand...