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 do i....

Author
Message
Bryn_boy
20
Years of Service
User Offline
Joined: 14th Dec 2003
Location:
Posted: 29th Apr 2004 00:18
how would i trigger an animation(avi) during a game based on the players position(FPS).all i basically want to do is; when a cirtain point in the level is reached to trigger an avi. what is the best way to do that?

any help would be gr8
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Apr 2004 00:28
you should monitor the player's xyz location in your main loop and when they reach a specific predetermined point, or within a range, launch the avi


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
Bryn_boy
20
Years of Service
User Offline
Joined: 14th Dec 2003
Location:
Posted: 29th Apr 2004 00:40
well ive tried to trigger it when the camera's x+z cordinates match that of an object this doesnt seem to work (im new at coding so bear wit me)...

cam_posx = camera position x ()
cam_posZ = camera position Z ()
obj_posX = object position X (?)
obj_posz = object position z (?)

if cam_posx and cam_posz = obj_posX and obj_pos z
play animation (?)

if this is stupidly wrong please help..
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Apr 2004 00:52
if (cam_posx = obj_posX) and (cam_posz = obj_pos z)
...do commands here for avi
endif

try that


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Apr 2004 00:53 Edited at: 29th Apr 2004 00:54
also, are you sure the camera can reach the exact coordinates?
you should print the values to the screen in the main loop so you can see if the camera hits the values you expect.


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Apr 2004 00:54
or maybe use collision now that I think about it


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!

Login to post a reply

Server time is: 2024-11-26 14:44:33
Your offset time is: 2024-11-26 14:44:33