dim3 Forum

Full Version: few questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have a few questions.

1. how do i get cars to fly? i want cars to be able to fly (i am making a harry potter chamber o secrets game).

2. how do i make different attacks, in my game, different spells. for example press K and the avada kedavra curse comes out of the wand.

3. how do i make the tree swing the branches more wildly and give damage to a person in a car or on the ground. (whomping willow, hehe).


please answer with details so i could do it. Smile thanks!
Can you read the dim3 docs please? Can you search the forum please? Can you take a javascript tutorial please? I'm not being mean -- I'm stating the obvious. Instead of relying on other people, rely on yourself. Really the forum is a place you come to for last-resort, when you've exhausted all your resources.
I don't want to be rude either - but reading the docs would not help this person... Maybe someone could him towards the documentation he is looking for. I've just looked at this for 1 day - sorry I can't help you.
To make cars:

obj.vehicle.on=true

To make flying cars:

obj.setting.fly=true;
obj.setting.inputMode=DIM3_INPUT_MODE_FLY;
obj.motionVector.alterGravity(0);

To make different weapons/attacks: There are two ways I know of to do this. One is easy, one is not as easy as the other (in my opinion). You can either set it via a weapons array, or, if I understand things properly, script it via sending/receiving messages. The first method I can help you with. The second method I cannot.

To make whomping willow: I do not know the answer to that question; I assume you would script it as an enemy bot, perhaps one that looks like a tree, but when the player gets close to it it goes all mental and starts bashing the hell out of them. Careful examination of the JoeFoe scripts might help you with that....


I hope this is of use to you. Best of luck!
You don't need messages to make a weapon, just add the weapon Wink.
Whomping willow? That would be awesome :D.
Just make a model with branches swinging around and when you touch it it damages you. I think that would work, isn't it polygon collision on objects now? Maybe not, you'll have to try.
Reference URL's