Author Topic: Calculating angles?  (Read 7136 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Calculating angles?
« Reply #15 on: October 24, 2012, 01:39:32 pm »
Holy balls that looks nice.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Calculating angles?
« Reply #16 on: October 29, 2012, 07:27:20 pm »

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Calculating angles?
« Reply #17 on: October 29, 2012, 08:15:59 pm »
Wow, that is looking excellent!

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: Calculating angles?
« Reply #18 on: November 15, 2012, 11:20:16 pm »
WOW! That looks FULLY sick!
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline _Nicco_

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +6/-0
    • View Profile
Re: Calculating angles?
« Reply #19 on: November 16, 2012, 12:18:46 am »
That looks great!  I reminds me of Super Mario World for the NES when you are on the ship and trying to get the key/wand (I don't remember) from the turtle guy to save the princess.
They say that your signature is supposed to go here...

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Calculating angles?
« Reply #20 on: November 16, 2012, 05:57:49 am »
Oh my the epicness :O
I'm not a nerd but I pretend:

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: Calculating angles?
« Reply #21 on: November 20, 2012, 12:32:33 am »
I was just wondering, is it a static route? Like are are you trying to make it move towards a specific point (like enemy_x + 10 or whatever) or does it try to aim for the player? If its the former you could have hard-coded the offsets.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Calculating angles?
« Reply #22 on: November 20, 2012, 03:50:15 am »
That indeed looks very nice. I would love to see a new Mega Man clone for calcs, preferably one that is almost as good as the original, not one made just to have a Megaman game for calcs like the other one on Ticalc (not that it was bad, but a lot better can be done for calcs). :P
« Last Edit: November 20, 2012, 03:50:47 am by DJ_O »

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Calculating angles?
« Reply #23 on: November 20, 2012, 05:35:23 am »
Tr1p1ea: It aims towards a set of coordinates. For the boomerang, going out it gets an initial angle/velocity aimed at the player and follows a straight path until it hits the edge of the screen. Then it comes back, this time updating the angle every frame based on the boss's position so that it returns to the boss. This is one of the more boring bosses :P