PDA

View Full Version : Is this possible?


Roger
12-01-2001, 09:19 PM
1. How do you make new jibs?
2. How do you make a sprite that spawns randomly scattered explosions when it hits the floor?

cyborg
12-02-2001, 08:55 AM
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Originally posted by Roger:
1. How do you make new jibs?<hr></blockquote>

And a your jibs would be so special you can't use actors right?

<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>
2. How do you make a sprite that spawns randomly scattered explosions when it hits the floor?<hr></blockquote>

You asked if 'it's possible' not 'how can I do it'.
Is it really too hard for you to figure it out? When it hits the floor you spawn new actors with random directions. The primitives are there to do this easily.

Roger
12-02-2001, 10:27 AM
I'm not a very skiled con coder, so it would be hard for me. The most I could do is make an object that just falls and flashes, or weapon upgrade pickups that I've made for my mod. I can't make something that acts like a jib where it flies in a random direction, arches, and eventually falls. I already knew it was possbile to make a new jib, as you people working on EDuke made the flying water drops.

Yeah, good point. I should have stuck to the topic name for the second question. But I can't understand how to use a lot of things.

You think you could give me a code for the bomb? The actor is INFERNOBOMB, the sound is DESTROY, the hitradius is INFRADIUS with strength of INFSTRENGTH. It drops and explodes when it hits the ground.

Mblackwell
12-02-2001, 11:33 AM
HA, I STILL use old 1.3 con coding techniques to program that stuff. Even WITH Eduke.

If the Con FAQ is still there at RTCM you can look at that.

Duke is very simple, program things in the most logical way. You want something to move... oh look there's a command called "move" that, guess what, MOVES the actor.

cyborg
12-02-2001, 01:09 PM
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Originally posted by Roger:
I can't make something that acts like a jib where it flies in a random direction, arches, and eventually falls.<hr></blockquote>

Read the move primitive description - there's an option to make your sprite face a random direction. If you want an arched path the simplest, cheapest, nastiest way, would be to have varying degrees of movement forward from large to small amounts over time using the count primiitive which doesn't reflect the way particles work at all.

<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>
You think you could give me a code for the bomb?<hr></blockquote>

It's basically the same as the jib code but with an explosion.

Roger
12-02-2001, 09:57 PM
I can understand the primitives, I just have trouble putting everything together. For example, I tried to make a non-exploding barrel that looks like the exploding barrel from Atomic. It didn't work. I tried to make an object where if you hit space at a certain distance, you get ammo and it disappears with a transport star. It ended spawning ammo and stars repeatedly when I hit the space bar when I was nowhere near the object, eventually causing an overload.

Roger
12-03-2001, 12:31 AM
I've tried to code stuff before and it hardly ever works; the only things that have worked are changed values and the things that are in my mod.