The Daily Click ::. Forums ::. Klik Coding Help ::. Strange enemy collision while 'X' Animation is playing, bullet just goes right through
 

Post Reply  Post Oekaki 
 

Posted By Message

Marcello64



Registered
  16/05/2007
Points
  144
5th February, 2008 at 16:24:26 -

Heres my problem, I want bullets to effect an enemy only while a certain animation is playing.

So i put in:

- ENEMY animation 'Walking' is playing
- Collision between 'Bullet' and 'Enemy'
- Destroy Bullet
- Change ENEMY animation to 'X'
- Select Movement 'X'

(enemy has multiple movements)

It works fine if i take out the '- ENEMY animation 'Walking' is playing' event, but then bullets effect the enemy while Movement 'X' is playing, which I do not want it to.

Any ideas? Thanks!


EDIT:

I recreated it in a new frame, and it works fine. Does that mean events are getting in the way?

EDIT #2:

I guess I can just create a new object for the death animation, its just a strange bug.

Image Edited by the Author.

 
Sig: I'm not the Marcello from Cellosoft.

Kalle T



Registered
  18/09/2004
Points
  362
6th February, 2008 at 13:14:38 -

You can use alterable values,

-Collision between 'Bullet' and 'Enemy'
-Set alterable value A = 0 (example)

-Alterable value of 'Enemy' A = 0
-Change ENEMY animation to 'X'

And for death animation its better to use another active object, since it not affected by other objects like bullets and movement.

Here you have movie example made with this settings

http://www.youtube.com/watch?v=I8fpCiGT-gQ


 
Image
Image
Image

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
6th February, 2008 at 13:36:21 -

Clickteam doesn't like you using animations, use movie files instead.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click