Game Development Community

Darts on TGB

by Joe Hanson · in Technical Issues · 10/02/2008 (9:56 pm) · 2 replies

Guys I've been thinking about this for a while now, I'm just a hobbyist and not an expert. But I can't seem to think of how I would approach it. I've already drawn all my assets, but I can't think of a way on how to make a darts game on TGB.

The game will be like pseudo fps so you use your mouse to position the crosshair so to speak, then you'll press the spacebar to set the strength of the throw. I can't think of how will TGB determine that the dart landed on on a specific score on the board. I'm really lost. Can anyone please help.

About the author

Recent Threads

  • Darts on TGB

  • #1
    10/10/2008 (8:03 am)
    Here's an idea. Since it'll be an fps, you can just make the dart constantly shrink 'onUpdate()' so it looks like it's flying away from you. When the dart's size ("if (%this.owner.getWidth() < 3) {") reaches a certain value, it'll stick. You can make it so it shrinks faster depending on the strength of your throw too.

    Of course, you posted this topic 7 days ago, so I doubt this is any help... ah well
    #2
    10/15/2008 (4:20 pm)
    Jeff thanks! Well like what I said this is just a hobby so I don't touch it everyday. I actually made an equation for that but I like your idea, so that's the one I implemented. But just like my original problem, the score, what I'm doing now is I'm mapping the score on the dart boards via coordinates which is not really efficient, so I haven't really mapped everything, just a few of it for testing. Do you have any other way?