The Daily Click ::. Forums ::. Klik Coding Help ::. Anyone still around who knows how to do 360 instant hit bullets with FASTLOOP
 

Post Reply  Post Oekaki 
 

Posted By Message

Ryan▫S



Registered
  25/10/2003
Points
  161
29th December, 2005 at 20:07:35 -

Because apparently when I try and do it, it doesnt take into acount the decimals, and it ends up being like 30 directions as opposed to 360. I use the "cos/sin(angle)*speed" formula. Any help?

 
Gah!

Ryan▫S



Registered
  25/10/2003
Points
  161
29th December, 2005 at 21:03:06 -

Thanks but that doesnt seem to affect it at all. I think it has something to do with the fact that it cant make it move a fraction of a pixel or whatever.

Is there any way around this? I would use Move Safely object but when repeatedly doing lots of objects it slows the game down a tonne.

Im using this to project a line of sight from each of my enemies, so that if you are behind something they cant see you. Any thoughts?

Image Edited by the Author.

 
Gah!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
29th December, 2005 at 23:18:19 -

Use two counters, for x and y. Have the object's position set to those coords. Perform the movement calculations on the counters because otherwise, even though the correct fractions are found they're rounded out when you relocate the object directly.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click