Does anyone have any advice on making a Bloons TD game? I can't figure out how to make the monkey throw the dart when the bloon is close. (I'm new to programming this kind of game).
think [how am I going to make this game?]Sincerely,
Offline
when gf clicked forever say [SPIT MY GRANDMOTHER OUT!!!!]
Offline
jdwjrnchewy wrote:
when gf clicked forever say [SPIT MY GRANDMOTHER OUT!!!!]
Testing 123
Offline
I think i know how to. You'll need an invisible circle.
Last edited by Firedrake969 (2012-05-06 17:12:12)
Offline
If it's only distance sensing you're worrying about then it's "simple"
when gf clicked forever delete [all v] of [distances v] add (distance1*) to [distances v] add (distance2*) to [distances v] add (distance3*) to [distances v] if (item [1 v] of [distances v]) > <(item [2 v] of [distances v]) and (item [3 v] of [distances v])> point towards [enemy1 v] end if (item [2 v] of [distances v]) > <(item [1 v] of [distances v]) and (item [3 v] of [distances v])> point towards [enemy2 v] end if (item [3 v] of [distances v]) > <(item [1 v] of [distances v]) and (item [2 v] of [distances v])> point towards [enemy3 v] end *//distance is worked out through this:sqrt of (xposof1sprite) + (xposoftheother)*(xposof1sprite) + (xposoftheother) end
Offline