The Daily Click ::. Forums ::. Klik Coding Help ::. Bouncing Ball problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
6th August, 2003 at 07:20:41 -

For one of my games, the shoot object for TGF had to many bugs (which isn't the hot/action spot porblem).
So i tried to make my own shooting with bouncing ball movement. It worked well UNTIL i found a bug.
when CTRL clicked and value 1 is on (values are the direction of the player) create bouncing ball, after that: set direction to random 31, 0 and 2 (the right sides of directions). and the opposite for the other value (value 2 : other direction of player). But when the bullet fires you can change the direction of it when firing another bullet of the opposite direction of the fired bullet (so basicllyt the fired bullet would change direction). How can i prevent this?
Its a bit confusing what i said, just hope it can make sense

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
6th August, 2003 at 07:34:12 -

Just use:
Upon pressing control
Create bullet
Set bullets direction to direction of player

OR

If you need it random, do this
Upon pressing control
Create bullet
Set bullets direction to Dir("Player")-7+Random(14)

I think you want the second one


Image Edited by the Author.

Image Edited by the Author.

 
n/a

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
6th August, 2003 at 08:43:15 -

cheers but i have tried that anyready.
I just founf the problem of this. Its the Games Factory object limit. When too many onjects the bullets dont create, SO since the bullets are not created the direction command works on the bullet s fired not the one created (because no bullet was created). I just have to cut down on active objects and commands. I can sort this out easy.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
6th August, 2003 at 08:44:01 -

already, not anyready GRRR. Maybe i should do slow typing again

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Smeggy

The Smegster

Registered
  08/01/2003
Points
  1062

VIP Member
6th August, 2003 at 11:54:08 -

Well some people (NOT ME) say that you can't spell or even read (emails, misunderstanding a lot etc..)

Are you dyslexic?

Cause if you are, I would tell people about it so no-one gets the wrong end of the stick...

 
http://www.klik-union.com

Kramy



Registered
  08/06/2002
Points
  1888
6th August, 2003 at 13:17:27 -

2 events for creation of the bullets

creation event...

alt.a is not 5, set to dir of "whatever" and change alt.a to 5

Now none of the bullets already made change direction.

P.S. I didn't understand any of your posts in this Thread.

 
Kramy

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
6th August, 2003 at 13:55:39 -

cheers. Smegsoft i said b4 im not dyslexic. It is just my hands and the keyboard. write with a pen is different to that.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation
   

Post Reply



 



Advertisement

Worth A Click