Wishlist for PB

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Wishlist for PB

Post by kcraft »

I've been working with a friend on a 3D game using PB and have come to a stand still. Our menuing system is complete, PureBasic does an awesome job with the speed in switching between menu options. (MUCH faster than DarkBasic, and we set the menu system up very similar to the one we did with DB). The following is one function that we would love to see available.


CalculateGravity(): Just something to tie the camera to a location above the ground and move it according to ground height. I thought this was a lot easier than it looked, but I am wrong.

I understand you are working on Collisions, and don't see a need to post all of that for a wish list. We are just waiting for the next release.

thanks.
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

I haven't tried this, but what you might want to do, is to read the TerrainHeight(x,y) at the player coordinates, and adjust the CameraY value so that it's always X units above the terrain...

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Thank you

Post by kcraft »

I will try that when I get home today. I had originally tried something to that effect, however didn't use the CameraY function. I used the movecamera(camera#, x, y, z) function. I think you are right on this one, as the problem I was having was either the camera went straight up, straight down, or didn't go at all. :-)

I'll post on the game programming forum if it works.

thanks again
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

The terrain example uses the technique Lars mentioned...

Give it a try!
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

DOH!

Post by kcraft »

I feel dumb now. Thats exactly what I was looking for. I must have been looking at a different example for this, its not listed in the first example I have.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Nah, dumb is looking for your car keys for 15 minutes WHILE HOLDING THEM IN YOUR HAND - like I just did :-)

I have such blonde moments sometimes I think I'd lose my head if it wasn't attached tightly.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

LOL@Karbon

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Post Reply