Animating

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Alter slide

Post by tltrude »

This sound may be what you are looking for--originally the alias named was "m4l1_altar_slide", but it only worked in that map. I added a sound workaround and named it "wall_slide".

//----------------------------------------------->
main:

// sound workaround

local.master = ScriptMaster
local.master aliascache wall_slide sound/mechanics/m4l1_altar_slide.wav soundparms 1.0 0.0 1.0 0.0 160 1600 item loaded maps "m moh dm obj "

level waittill prespawn

$walls time 3 //sets the travel time
$slabs time 3 //sets the travel time

level waittill spawn

thread move_stuff //starts the thread

end

move_stuff:

wait 15 //wait 15 seconds

$walls movedown 256 //... sets the movement command and distance
$walls loopsound wall_slide //... starts a sound alias looping
$walls waitmove //... starts the object moving and halts the script
$walls stoploopsound //... stops the sound after the move is done

wait 2

$slabs movedown 256
$slabs loopsound wall_slide
$slabs waitmove
$slabs stoploopsound

end

//----------------------------------------------->
Tom Trude,

Image
Dani
Sergeant Major
Posts: 113
Joined: Mon Mar 08, 2004 6:45 pm
Contact:

Post by Dani »

Thanks all for your help, i have just 1 more NOOBY question. Were do i put $walls damage 500 in the script so that it works???

THANK YOU ALL FOR YOUR GOOD HELP :D
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

i think it was supposed to be in the entity window (right?)
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

trigger

Post by tltrude »

I don't know if that would work or not--I have never seen it used before. Normally, I would use a trigger below the wall to damage the players.
Last edited by tltrude on Thu Jul 29, 2004 9:47 pm, edited 1 time in total.
Tom Trude,

Image
Dani
Sergeant Major
Posts: 113
Joined: Mon Mar 08, 2004 6:45 pm
Contact:

Post by Dani »

How do i make something move diagonaly, because i can make something move North but not NorthWest?
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

move X Y Z
Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »


//Close the Cells.
$axis_door1 damage 500
$axis_door2 damage 500
$axis_door3 damage 500
$axis_door4 damage 500
$axis_door1 moveforward 100
$axis_door2 movebackward 100
$axis_door3 moveleft 100
$axis_door4 moveright 100
$axis_door1 playsound snd_cells
$axis_door2 playsound snd_cells
$axis_door3 playsound snd_cells
$axis_door4 playsound snd_cells
$axis_door1 move
$axis_door2 move
$axis_door3 move
$axis_door4 waitmove
end


damage is just like the other setup info, time and direction etc. you can set it anywhere before you mvoe the object
When I am king, you will be first against the wall~
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

direction

Post by tltrude »

You can add as many movement commands as you need before it moves.

$thing moveNorth 128
$thing moveWest 128
$thing move // or waitmove

It will move both directions at the same time.
Tom Trude,

Image
Dani
Sergeant Major
Posts: 113
Joined: Mon Mar 08, 2004 6:45 pm
Contact:

Post by Dani »

Oh yeh i already knew that cos i did move and rotation at same time, thx!
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

Your sites looking cool Dani, sort it out and finish it :)
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
Dani
Sergeant Major
Posts: 113
Joined: Mon Mar 08, 2004 6:45 pm
Contact:

Post by Dani »

my website? i have been put of from it cos of this mapping , lol kinda ironic that u mention it. i am finding it hard for content, and i am getting better at actionscript so it should be finished in the next year or so
Post Reply