Phew, I almost had to take a trip back to Geometry class. What was it? Sign, Cosign, Tangent? Sohcahtoa?
Anyways, thanks for the help. I appreciate it.
I'll probably be needing a lot more help later on.
Search found 15 matches
- Sat Dec 03, 2011 6:05 pm
- Forum: Support and Development
- Topic: Getting the Right Angle Velocity [FIXED]
- Replies: 4
- Views: 1650
- Sat Dec 03, 2011 4:40 pm
- Forum: Support and Development
- Topic: Getting the Right Angle Velocity [FIXED]
- Replies: 4
- Views: 1650
Getting the Right Angle Velocity [FIXED]
Ok. I know I should be able to do this. But I can't seem to remember the right formula. I'm trying to do the simple make a projectile go to where the cursor's location is. My projectile is it's own class with a speed. Here is my code. if love.mouse.isDown("l") == true then CP = CProjectile...
- Sun Nov 13, 2011 7:50 pm
- Forum: Support and Development
- Topic: Problem with SECS and self. [FIXED]
- Replies: 5
- Views: 1605
Re: Problem with SECS and self.
Awesome thanks for the help guys!
- Sun Nov 13, 2011 6:43 pm
- Forum: Support and Development
- Topic: Problem with SECS and self. [FIXED]
- Replies: 5
- Views: 1605
Re: Problem with SECS and self.
Thanks for the help! That was a simple error. But I'm still getting a problem.
This time I'll be more specific. It says
This one doesn't seem as easy as a fix.
EDIT: Like 44 is
This time I'll be more specific. It says
Code: Select all
Circle.lua:44: attempt to perform arithmetic on field 'y' (a nil value)
EDIT: Like 44 is
Code: Select all
self.y = self.y + self.yspeed * dt
- Sun Nov 13, 2011 5:05 pm
- Forum: Support and Development
- Topic: Problem with SECS and self. [FIXED]
- Replies: 5
- Views: 1605
Problem with SECS and self. [FIXED]
Hello! I'm a relatively new programmer. I learned how to use lua A LONG time ago with a little game called Roblox :awesome:. Having moved to making my own 2d games with Love2d, I have encountered my first major problem. I can't seem to get self.(field) to be recognized as a value of the class. Here ...