Search found 35 matches
- Mon Jul 15, 2013 3:06 pm
- Forum: General
- Topic: ParticleSystems in Rebound
- Replies: 5
- Views: 8548
Re: ParticleSystems in Rebound
What a great writeup, and of some pretty creative uses of particle systems to boot. Thanks to both of you.
- Thu Jul 11, 2013 10:47 pm
- Forum: Support and Development
- Topic: score counter and putting objects to collect
- Replies: 14
- Views: 11580
Re: score counter and putting objects to collect
Is there a piece of your code where powerups are marked as collected or destroyed? In that chunk of code increment a score variable that you initialize to zero upon entering the game state. It all sort of depends on how your game is structured as to how you go about keeping track of things. an overl...
- Wed Jul 10, 2013 5:01 pm
- Forum: Support and Development
- Topic: I'd like your opinion on my take on slopes.
- Replies: 10
- Views: 4789
Re: I'd like your opinion on my take on slopes.
If you're going to go davisdude's route you might also notice that your slopes happen to already be in a useful form. In addition to being a "triangle" they also represent a 2d vector you could pretty trivially apply to your character.
- Tue Jul 09, 2013 8:17 pm
- Forum: Support and Development
- Topic: I'd like your opinion on my take on slopes.
- Replies: 10
- Views: 4789
Re: I'd like your opinion on my take on slopes.
If you're making a platformer, your take is pretty much correct. Check to see what kind of tile is below you, which -- while it is a trickier question than it seems -- is something you can definitely muddle your way through and learn a lot from. There's a rad article about slopes and curves in refer...
- Mon Jul 08, 2013 3:23 am
- Forum: Support and Development
- Topic: Issue with simple physics removal test.
- Replies: 5
- Views: 2807
Re: Issue with simple physics removal test.
you're also not removing it from the toRemove list.
- Mon Jul 08, 2013 2:43 am
- Forum: Support and Development
- Topic: Issue with simple physics removal test.
- Replies: 5
- Views: 2807
Re: Issue with simple physics removal test.
You should probably make sure the object you're trying to draw actually has a body before you ask it anything about its body. It'll get self conscious and throw an error like that one. Once you destroy the fixture the body becomes unavailable, and you're trying to draw it by using its body. No biggi...
- Fri Jul 05, 2013 7:13 pm
- Forum: General
- Topic: Where do you find artists?
- Replies: 3
- Views: 1595
Re: Where do you find artists?
If you want someone to be in it for any kind of long haul you need to have trust and respect. Those are difficult to engender, but there are things you can do to help them along. You can pay them, you can exchange work for them, or you can do something notable enough that they approach you in the fi...
- Fri Jul 05, 2013 5:42 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1791
- Views: 1513891
Re: What's everyone working on? (tigsource inspired)
Incredible job! I could never do anything like that :P I spent about 10 minutes just moving about and being fascinated. The code wasn't all to confusing either(granted I only looked at main.lua). I assume the Vector thing was a library or something? Or did you make it? Sure you could! I actually do...
- Thu Jul 04, 2013 11:29 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1791
- Views: 1513891
Re: What's everyone working on? (tigsource inspired)
Making some 3d projections for a city. It's still limited, but getting better.
- Tue Jul 02, 2013 10:52 pm
- Forum: Support and Development
- Topic: Iterating through a table if it doesn't have an index?
- Replies: 4
- Views: 2909
Re: Iterating through a table if it doesn't have an index?
Code: Select all
for key,value in pairs(table) do
...
end
also, if you want to get at one of those objects, you'd do
Code: Select all
fruit.apples
Code: Select all
local fruitName = 'apples'
fruit[fruitName]