The Daily Click ::. Forums ::. Klik Coding Help ::. 360 Shooting problemo
 

Post Reply  Post Oekaki 
 

Posted By Message

Werbad



Registered
  18/09/2002
Points
  235
21st January, 2007 at 09:34:38 -

That code won't work any better that setting the positions directly...

try:
- Bullet: Add Cos(Alterable Value A( "bullet" ))* Value B("Bullet") to Value C
- Bullet: Add Sin(Alterable Value A( "bullet" ))* Value B("Bullet") to Value D
- Bullet: Set X position to Alterable Value C("Bullet")
- Bullet: Set Y position to Alterable Value D("Bullet")

Set Value C and D to the bullets position when creating it

 
n/a

renneF



Registered
  02/08/2003
Points
  672
22nd January, 2007 at 06:54:42 -

@Axel
Yah I tried that, but it just made the bullet faster and skip lots of pixels when moving.

I'll give that a shot, Werbad.

 
Image

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
22nd January, 2007 at 11:50:56 -

I've always used that code, and never had any problems like that. Bah.

 
n/a

Ganymede Graphics

Possibly Insane

Registered
  17/04/2006
Points
  2711

GOTW JANUARY 2011
23rd January, 2007 at 01:40:12 -

Don't you use usually have to make the sine part of it negative?

 
Especially that.

Reno



Registered
  11/01/2005
Points
  906
24th January, 2007 at 14:35:32 -

ya axels method is the same method I use

 
Reborn Again
   

Post Reply



 



Advertisement

Worth A Click