Page 1 of 1

Help, please.

Posted: Sat Oct 29, 2011 5:21 pm
by FangUp
So this time i have this trouble, i am trying to do an Avenue, 2 of them, that will blast a player from one corner to the other & the same thing with the other corner. (CTF bases at corner.)
This is how this 2 Avanues look:

# Simple box with horizontal physics driver:
physics
name moving
linear 1000 1000 10
end
meshbox
position 365 0 1
rotation 45
size 20 20 2
phydrv moving
end

# Simple box with horizontal physics driver:
physics
name moving
linear -1000 -1000 10
end
meshbox
position -365 0 1
rotation 45
size 20 20 2
phydrv moving
end

So the trouble here is, that i tried EVERYTHING with the Linear option from making all 1000 speeds positive to negative. Always when i tried for these two to blast me in the way to opposite base, it never worked.
One Avanue always blasted me correctly to the other base, but 1 just sent me back to my base (same diagonal way of blast-off.) So what did i do wrong? please im doing this one thing 5 hours now still no sucsess...
I need to make them blast each in other side but they always blast me in the same way (North East or South West.)
Please help ):

Re: Help, please.

Posted: Sat Oct 29, 2011 5:24 pm
by FangUp
They blast me North East OR South West (both of them) I need them to blast me North East AND South West at the same time. (1 Avanue NE and 1 Avanue SW.)

Re: Help, please.

Posted: Sat Oct 29, 2011 6:30 pm
by mahem1
Ok, first of all: You need to be more clear on how you word you sentences, I find very hard to read what you write.
But thanks for putting so example code!!

Fix 1:
Only use one physics but rotate one of the boxes in the opposite direction.
You have it already rotated at 45 so add 180 more degrees to the and it will face the
opposite direction.

Fix 2:
You have to physics named the same thing!!! I don't know how the code works, but I
think the second physics is not accounted for so both meshes refer to the first
physic. Have to different names!!


Also please use the edit button (you can find it on your old post) instead of writing a new post. It just makes it easier to read, thanks!

Re: Help, please.

Posted: Sat Oct 29, 2011 7:16 pm
by FangUp
Oh gee! Thanks lol! i just need to change the degrees:D omg im soo STUPID xD thank you very much!

Fix 1:
Thank you so much!!!

Fix 2:
Incorrect, you must use it, it is just an object like box:P (both of them)

Re: Help, please.

Posted: Sat Oct 29, 2011 8:05 pm
by Mark_IV
FangUp, if the physics drivers do different things they have to be named differently. Otherwise BZ won't know which one you want to use.

Re: Help, please.

Posted: Sun Oct 30, 2011 2:40 pm
by FangUp
________________________________________________________________^^^^^^^^^^
I did name them correctly and sorry for all the exitment (dunno how to spell) before... it doesnt work...
Well it does not matter to me i changed it into a Trampoline so it is cool with me.

Re: Help, please.

Posted: Sun Oct 30, 2011 10:12 pm
by mahem1
As I said you need to change the names you cannot have two physics with the same name.
I highly doubt that making another overwrites the first one. I presume when you tell the meshbox to use a physics it starts looking at the top of the file for the physics, not the most recently made one.
So just simply add a '2' to the end of 'moving' to make a new physics.
Hope this helps!

Re: Help, please.

Posted: Mon Oct 31, 2011 4:43 pm
by FangUp
Ahh, I get your point now, BUT! There is a catch!
When using BZEdit, there you will see something like this: "box" and the next one is "box copy 1"
That is NOT necessary. I do my maps by hand and i always do this:

box
name Box
position 0 0 0
rotation 0
size 25 25 50
end

Now if i do another:

box
name Box
position 2 50 45
rotation 25
size 16 24 30
end

It has the same name but works perfectly, i do not think it is much difference with Psychs.

Re: Help, please.

Posted: Mon Oct 31, 2011 5:08 pm
by JeffM
boxes are not referenced by other objects, Physics drivers are, the names must be unique.

Re: Help, please.

Posted: Mon Oct 31, 2011 8:02 pm
by FangUp
i see ok thx.
But the Trampoline is working just fine if you check my new map.

Re: Help, please.

Posted: Tue Dec 13, 2011 10:12 pm
by Agent West
An example for future reference:

physics
name example_road
linear 10 0 0
end

physics
name example_highway
linear 20 0 0
end

box
position -20 0 0
size 10 3 1
phydrv example_road
end

box
position 20 0 0
size 10 3 1
phydrv example_highway
end


Note: the objects don't have to have names, they are more for your reference.