I look though the forum as best is possible
I had an idea ware i wanted to use the keyboard on the pc
but it seems the inkey$ that was in dbp was not there
and the other setup for keyboard use is limited
it would be nice to have the "inkey$" added in
so sets keys can be used at the same time
I also tried to build a model just using the build objects but when i rotated the linked objects using "FixObjectToObject"
only that one object rotated
there is no example for "FixObjectToObject" that i could find
what follows is what i put together to get the results i was after but
now I am stuck
:-D
// Project: Flight
// Created: 2017-12-22
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Flight" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
global angx#=0 : global angy#=0 : global angz#=0
//CreateObjectCone( objID, height, diameter, segments )
//CreateObjectBox( objID, width, height, length )
//SetObjectPosition( objID, x, y, z )
//FixObjectToObject( objID, toObjID )
SetCameraPosition(1,0,50,-100)
remstart
x
x x
x
x x
//CreateObjectBox( 6, 12, 6, 18 ) :
remend
CreateObjectCone( 1, 5, 10, 10 ) : CloneObject( 2, 1 ) : CloneObject( 3, 1 ) : CloneObject( 4, 1 ) : CloneObject( 5, 1 ) : CloneObject( 7, 1 )
SetObjectPosition( 1, 0, 0, 15 ) : RotateObjectLocalX( 1, 90 )
SetObjectPosition( 2, -10, 0, 0 ) : SetObjectPosition( 3, 10, 0, 0 )
SetObjectPosition( 4, -10, 0, -30 ) : SetObjectPosition( 5, 10, 0, -30 )
CreateObjectCapsule( 6, 12 , 30 , 2 ) : SetObjectPosition( 6, 0, 3, -15 ) : RotateObjectLocalX( 6, 90 ) : //SetObjectScale(6 , 12 , 8 , 30 )
SetObjectPosition( 7, 0, 0, -40 ) : RotateObjectLocalX( 7, 90 )
FixObjectToObject( 6, 1 )
FixObjectToObject( 6, 2 ) : FixObjectToObject( 6, 3 )
FixObjectToObject( 6, 4 ) : FixObjectToObject( 6, 5 )
FixObjectToObject( 6, 7 )
CreateObjectPlane( 100, 200, 200 ) : SetObjectPosition( 100, 0, -40, 0 ) : RotateObjectLocalX( 100, 90 ) : SetObjectColor( 100, 50, 50, 150, 50 )
remstart
for A = 1 to 5
CreateObjectCone( A, 10, 10, 10 )
if A = 1 then SetObjectPosition( 1, 0, 0, 10 )
if A = 2 then SetObjectPosition( 2, -10, 0, -10 ) : // left front
if A = 3 then SetObjectPosition( 3, 10, 0, -10 ) : // right front
if A = 4 then SetObjectPosition( 4, -10, 0, -10 ) : // left back
if A = 5 then SetObjectPosition( 5, 10, 0, 10 ) : // right back
next A
remend
//CreateObjectBox( 6, 8, 8, 10 ) : SetObjectPosition( 6, 0, 0, 0 )
do
angx#=angx#+1: if angx#>359 then angx#=0
SetObjectRotation( 6, angx#, 0, 0 )
//RotateObjectBoneLocalX( 1, 6, angx# )
Print( ScreenFPS() )
Sync()
loop