Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualP0jahn

Posted 09 January 2013 - 10:45 AM

I need to implement a laser unit to my game that fire a rotating(360 degree) laser. The laser target coordinate is where I am getting stuck at. Every frame, it need to update its target coordinates so the laser is spinning. So if I have a rectangle that is 800x600, first I get coordinate 1:0, then 2:0, and later 800:0, then 800:1, 800:2, later 800:600, then 799:600. I hope that was clear. I thought it was an easy task, I opened eclipse but got stuck pretty fast smile.png Searched on google but could not find anything.


#2P0jahn

Posted 09 January 2013 - 10:44 AM

I need to implement a laser unit to my game that fire a rotating(360 degree) laser. The laser target coordinate is where I am getting stuck at. Every frame, it need to update its target coordinates so the laser is spinning. So if I have a rectangle that is 800x600, first I get coordinate 1:0, then 2:0, and later 800:0, then 800:1, 800:2, later 800:600, then 800:599. I hope that was clear. I thought it was an easy task, I opened eclipse but got stuck pretty fast smile.png Searched on google but could not find anything.


#1P0jahn

Posted 09 January 2013 - 10:43 AM

I need to implement a laser unit to my game that fire a rotating(spinning) laser.

The laser target coordinate is where I am getting stuck at.

Every frame, it need to update its target coordinates so the laser is spinning.

 

So if I have a rectangle that is 800x600, first I get coordinate 1:0, then 2:0, and later 800:0, then 800:1, 800:2, later 800:600, then 800:599.

I hope that was clear.

 

I thought it was an easy task, I opened eclipse but got stuck pretty fast :)

Searched on google but could not find anything.


PARTNERS