hey, anyone know how to get a chunk of gut to jump out of an enemy (with frog like motion) in a random direction when hit? Much like the chunks in aliens survival.
heyo
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
30th June, 2003 at 23:18:55 -
I've never played aliens survival. But to get a chunk out of something. You can use the paste image into background action, with a circle shape the same colour as the background. The only prob is the thing you are ripping a chunk out of has to be a background, not an active. I don't know how to do it with an active, unless the body is seperated into differant objects.
Im guessing you just want chunks of guts to fly off your enemie when they get hit? Easy. First just make your chunk active object. (All you gotta do is make a bloody peice of skin, and spin it in 8 directions clockwise so it looks like its flying) Now, make a Always condition, and under your chunk, do: Set Y Position of ("chunk") + Value A of ("Chunk")
Then make a Every 10 MILIseconds condition. And under chunks put: Add 1 to Value A. DONE!
All you have to do now, is when he gets hit. Make his body shoot the chunk in random directions (All directions facing up) and little chunks will go flying across your screen. If you can remember this code, expermint with it, you can go a very long ways.
We are the music makers, we are the dreamers of dreams...
hey, if it stops when colliding with backdrop, wouldnt it simply not move, i may aswell make a static chunk and have created relative to my characters.
heyo
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
3rd July, 2003 at 00:15:20 -
Yes, but then that's one active object taken up. And every active object burns memory. Btw Rycoon forgot to add, destroy the chunk after pasting into background otherwise it's no differant to what you were suggesting - Aaron.
Okay, this tutorial worked out fine. i got it to work. ill use this alot now
however, say instead of chunks, im using this on bullet shells or rocks or something. how do i get them to hit bounce a few times when they hit the floor?
Aaron: Andy is right, having a chunk sit on the ground, so you can like shoot it and move it or somthing, will burn alot of memory if you dont limit there amount. You can use the code posted below to make them bounce, and then when they have bounced enough, make them just stop, and have code to move them when they get hit or somthing. But you will need to make sure to turn off the Always code (above) its a big mess, but if your willing to do it, its very possible. I recomend you just let em bounce a few times and fall off the screen.
Andy: Its Rycon, not Rycoon (Its all good, just cant stand being called that ) And yes your right, thanx for catchin that.
When the item hits a backdrop or somthing you want to bounce, do this:
Teh Keelor:
Rock Collides with background: Set alterable value A to (Value A of ("Rock") -9) * -1
Where the -9 part is how much its gonna NOT bounce as much, if it were -1 it would bounce a WHOLE lot of times, it may even bounce higher from its first drop if you drop it from a tall spot. Also, you can subract from its Value B when it hits somthing, and test to see if value B is less then a certain number, so that it doesent bounce forever, it just falls through the landscape. It also wont detect things from left or right, wich can give a cool effect, but if you dont want it to pass through certain things, simply do
If rock is OVERLAPPING, instead of colliding.
This is super easy, dont let all this mumbo jumbo psyc you out, just put in that code above and your done.
Omg this is my longest post ever, I cant stand long posts. lol :|
We are the music makers, we are the dreamers of dreams...