Ran into a problem, and I would appreciate any help you can give me. I am doing a zombie shooter, and I want the zombies do "bleed". I can do that, though the problem is when I want several different kinds of splatter, so when I "paste into background", it will be one of three different splatters. I used one object, with 3 different animations. Then I used internal value A, "random (3)... and then
Value A=1 -----show animation 1
Value A=2 -----show animation 2
Value A=3 -----show animation 3
Then for all "animation 1/2/3 is finished" ------set value A to 0, paste into background
For some reason, this doesnt work...all I get is that the first animation is alwaysed used.
anyone know why?
Dave: Ahh...that might be the case, I thought random (3) gave 1,2,3....I'll try to change it and see what happens
pixel artist
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
5th October, 2005 at 05:46:26 -
An easier method may be to use an active as the blood splatter, with every direction as a differant splatter. This way you can just say "Set direction to random (3)+1", paste into background.
It also makes some trouble with animation is over and paste into background. It pastes the picture AFTER the current one. Maybe this is your trouble here. Because it switches back to first animation, and pastes then ...
Lets say your animation is 9 frames long. Now try this:
animation 2 is playing + current frame is 8 ---> paste into background + destroy
well, I tried some ways, and now its works! though, of course, now I have another problem. Now, when I have several enemies, I want them to all bleed... I can do this for one enemy, but when I try to do it for all of them (using object group for all enemies), I could not use the event:
Collision between "bullet" and group "enemy" ---- create "blood" at group "enemey"
I cant do the last part, choose the "enemy" group as the location where the blood is created.
I'm not sure if this will help, but try changing the event to "Collision between Group.Enemies and Bullet" rather than the other way round - it makes the group the "subject" of the event. Or it might do, anyway.
tried it, didnt work...The trouble is the last bit, I cant place the group as the location where the blood will appear. now, it doesnt matter which zombie I shoot, its still the only the same first one which bleed.