Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How to make different sounds play at certain points

Author
Message
Pixle Pusher
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Monitor, Keyboard, Mouse. UK
Posted: 7th May 2004 18:48
Any help with this would be great.
I've made a basic level and i want to have a different sound play when i hit different surfaces.
Also, how can i make the sound stop when i hit walls, doors e.t.c
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th May 2004 18:51
you'd need to be tracking you player's position and collisions methinks


* DBP_NETLIB_v1 - VB.NET PLUGIN FOR DBP * Click Logo
Pixle Pusher
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Monitor, Keyboard, Mouse. UK
Posted: 7th May 2004 18:58
Yeah, i'm doing all that. Collision and Camera position.
print "Camera Position"
print camera position X()
print camera position Y()
print camera position Z()
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th May 2004 19:30
well then if you have a loaded sound using the Load Sound command then just Play Sound # when the player is at (or in the vicinity of) the xyz coords you want. Also test collisions against the player with Object Collision(playernum,0) <---0 causes this function to return the obj num that playernum collided with - based on that, you can play specific sound numbers depending on what was hit (wall, door, etc)


* DBP_NETLIB_v1 - VB.NET PLUGIN FOR DBP * Click Logo
Pixle Pusher
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Monitor, Keyboard, Mouse. UK
Posted: 7th May 2004 19:37
Do you mean, Play Sound, #,Start Position??
Can you tell i'm new to this?
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th May 2004 19:38
I suggest you look up the Sound commands in the dbp help. It explains how to use the various commands.


* DBP_NETLIB_v1 - VB.NET PLUGIN FOR DBP * Click Logo
Pixle Pusher
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Monitor, Keyboard, Mouse. UK
Posted: 7th May 2004 19:41 Edited at: 7th May 2004 20:46
Thanks for almost helping.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th May 2004 19:46 Edited at: 8th May 2004 00:24
edited...


* DBP_NETLIB_v1 - VB.NET PLUGIN FOR DBP * Click Logo

Login to post a reply

Server time is: 2024-11-26 16:42:39
Your offset time is: 2024-11-26 16:42:39