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 / object disapearance question

Author
Message
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 25th Nov 2003 01:13
if i had 500 objects on my matrix and i ran into one how could i make it dissapear? Well wat i was thinking was like if object collision then hide object x but i had all the objects as object x so wouldnt it hide all of em. I havent tried it yet so if that would work tell pleaze tell me. oh also if you ran into one of em how could you print the number you have too the screen.

Wat im makin is a stupid game were thers objects all over the matrix and you run into em and that counts as a point and you try to get the most poisnt aas possible. and maybe once im donwe with that maybe do some simple ai for it but thats not part of my question.

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 01:22
if you have 500 objects then they should each have a unique number, test collision of your player with 0, so that the Object Collision function will return the number that was hit, then use that to hide or delete the object.

you can also print the number to the screen with text or print, but use set cursor to print in the same location instead of scrolling

-RUST-
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 25th Nov 2003 01:33
but wat sourc code would it be how could u make it chack to see wich one it hit?

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 02:29


Something like this in your main loop should work.

-RUST-
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 25th Nov 2003 03:52
thanx that worked nice now maybe one last thing how would you print the total you have collected?

omg sliding collision sux!!!!!

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 05:12


-RUST-
Stephen
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: Appalachians
Posted: 25th Nov 2003 05:19
I have actually made this game before. It got erased on accident.
To print the total you have collected: When you hit an object just type "variable=variable+1". Just print it using the text command, "text 5,5,Str$(variable)"

When I made it, I made circular blades that would follow you. To do that you will have to scale a sphere like this
"scale object blade,100,1,100" Then just type
"point object blade,playerx#,playery#,playerz#" and then
"move object blade,1". Adjust the speed if needed. The collision part is in the code box. I don't know if I have the cooridinates of the text right or not.
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 25th Nov 2003 19:40
no i meen like the total amount you have collected. like if you colledted 15 then it would say you have collected 15 or sumthin how would you do that.

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 19:49
I added the code above, or I am not understanding you.

-RUST-
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 26th Nov 2003 06:14
oh maybe you did i only used the code from the box thing. Ill try it.

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Nov 2003 06:25
use the code Posted: 24th Nov 2003 22:12

-RUST-
skater1
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 26th Nov 2003 06:31
oh are you using pro or classic? cuz im using classic. Ithink i tried ur code but i had to delete some of it cuz it said it was unrecognized perimeter. hmm i also need a better collision cuz i was usin the regualr sliding collision from the sliding coll example but like it works for like 5 and then it stops working. I think it might be because my guy is runing really fast. im tryin to use tis dll that i downloaded from this one website but i cant get it to work. I think ill get it soon i hope.

tim
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Nov 2003 07:04 Edited at: 26th Nov 2003 07:05
yeah, I am using pro, and imho so should everyone else. My code examples are pro syntax.


ps-just so you know, there is a dbclassic forum.

-RUST-
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 26th Nov 2003 18:56
Take away the "as integer" bits from the to and it'll run fine.

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM

Login to post a reply

Server time is: 2024-11-25 18:27:45
Your offset time is: 2024-11-25 18:27:45