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.

3 Dimensional Chat / ppl and shooting

Author
Message
godlikegamerz
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: United States
Posted: 20th Dec 2002 21:01
i need help i'm makin a gta3 sort of game and i have ppl all as same x file but diffrent objects and i need to have them each have helth and if get hit by a pistol they lose 5 and have a total of 50 health this is what i have so far... srry if it is sloppy...
Sync On
Sync Rate 30
Hide mouse
Backdrop on
Set camera range 1,5000

Fog off
Fog distance 1500
Fog color RGB(128,128,128)
Color Backdrop RGB(128,128,128)

Rem make matrix
Make matrix 1,5000,5000,20,20

Rem texture matrix
Load image "grass.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1

rem hide mouse
hide mouse

rem Make Gun
Make object cylinder 1,2
XRotate Object 1,90
Fix object pivot 1
Scale object 1,100,100,500
position object 1,0,-7,12
Lock object on 1

Rem Make bullet
Make Object Sphere 2,20
Hide Object 2

rem ppl in level
LOAD OBJECT "idle.x",5 : APPEND OBJECT "walk.x",5,100
YROTATE OBJECT 5,180 : FIX OBJECT PIVOT 5
position object 5,1020,1,2000
LOOP OBJECT 5,0,20 : set object speed 5,15
object5life=50

if object5life 0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 20th Dec 2002 23:42
What exactely do you want help with, you dont want other people to write your whole program do you? First thing before you put shooting and collision detection stuff in there is you want to put in a loop so you can move your character around-try putting this at the end of your code(delete that last line, I dont have a clue what it does but it checks the variables about 4 times) this...



say if you cant get it to work

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 21st Dec 2002 00:46
sorry, the vertical camera limit part was wrong, replace it with this...



Yum! Yum! Yum! Yum!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 21st Dec 2002 00:48
Ok, I have now seen you full post with all the code on it, ignore what I said.

Yum! Yum! Yum! Yum!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 21st Dec 2002 01:34
OK here is the code that makes your game shoot and detect when a player has been hit (kind of, it doesnt work that well)...



Its probably also very messy, tidy it up if you want and post back if you dont understand anything.]

Hamish

Yum! Yum! Yum! Yum!
godlikegamerz
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: United States
Posted: 21st Dec 2002 19:11
thank you it works with your code now but i'm havin trouble putting it together with my orginal code

godlikegamerz
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: United States
Posted: 21st Dec 2002 22:24
ok this is getting to confusing to control i'm startin from scratch this time and making the characters, cars, buildings, and guns first. ty for your help anyway, wish me goodluck. (i will need it)

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 21st Dec 2002 23:01
Good luck!

Yum! Yum! Yum! Yum!

Login to post a reply

Server time is: 2024-03-29 08:55:09
Your offset time is: 2024-03-29 08:55:09