Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: asdfchlwnsgy1236 on April 15, 2014, 08:13:26 AM

Title: Copying the Bomber (Somewhat)
Post by: asdfchlwnsgy1236 on April 15, 2014, 08:13:26 AM
It's my first time using CRPL and I am trying to figure out how to make a custom Bomber drop a bomb that falls like the original Bomber's AC bomb instead of blowing up immediately as it is released. Basically, I want the ship to drop the bomb, have the bomb fall for a few seconds while moving slowly forward to its target location, and then blow up.
Anyone know how? ???
Title: Re: Copying the Bomber (Somewhat)
Post by: Asbestos on April 15, 2014, 09:45:16 AM
Bombers already do that, you know. Just watch a bomber at x1 speed and you can see the AC bomb slowly falling.
Title: Re: Copying the Bomber (Somewhat)
Post by: asdfchlwnsgy1236 on April 15, 2014, 10:45:10 AM
Yeah, but I want to make a different kind of Bomber, pretty much. Is that even possible?
Title: Re: Copying the Bomber (Somewhat)
Post by: Vanguard on April 15, 2014, 12:27:51 PM
Quote from: asdfchlwnsgy1236 on April 15, 2014, 10:45:10 AM
Yeah, but I want to make a different kind of Bomber, pretty much. Is that even possible?

Should be.

I am currently in the process of doing something similiar.

Let´s think this through.

Step 1) Creater bomber and let it fly around.
Step 2) At Intervals X create a bomb. Apply a script to it.
Step 3) In this Script rotate, wiggle and resize the image to give the illusion of the bomb dropping.
Step 4) At the end of the lifetime, detonate the bomb, create AC at location and destroy the item from CRPL memory.

So far my thought process. Ill update as I discover more. Need to finish my manufacturing first.
Title: Re: Copying the Bomber (Somewhat)
Post by: planetfall on April 15, 2014, 04:14:22 PM
This might help: http://knucklecracker.com/forums/index.php?topic=14650.0
Title: Re: Copying the Bomber (Somewhat)
Post by: Grayzzur on April 15, 2014, 06:27:01 PM
That it might. :)

Take a look at my IxDrones map (planetfall kindly provided the forum link). It's an attempt to re-create CW1-style Drone bombers. There's CRPL code in there for the falling bombs.

Another post that could be helpful is eduran's Flyer Movement Framework http://knucklecracker.com/forums/index.php?topic=15387.0 (http://knucklecracker.com/forums/index.php?topic=15387.0).
Title: Re: Copying the Bomber (Somewhat)
Post by: asdfchlwnsgy1236 on April 16, 2014, 12:03:02 PM
eduran's Flyer Movement Framework is awesome. I will definitely be using that for this. Well, after my exams, I guess....
And I think I can reuse a lot of the code for the bombs. Thanks, planetfall and Grayzzur.