FPS and tutorials for using my gun??

Blitz3D Forums/Blitz3D Beginners Area/FPS and tutorials for using my gun??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

quote:
If MouseHit(1)
shot.bullet = New bullet
shot\model = LoadMesh("C:\Documents and Settings\flacka\Desktop\Game\bullet head.3ds")
shot\casing = LoadMesh("C:\Documents and Settings\flacka\Desktop\Game\b caseing.3ds")


outch! You should never ever load things in the main loop.


Instead load then at startup, the reuse them. you can also load each thing you are going to use, then use CopyMesh to create a clone on the fly.

also make sure your bullets are not parented to anything (eg. to the camera, via gun). So use EntityParent shot\model,0