Not Responding

BlitzMax Forums/MiniB3D Module/Not Responding

Captain Wicker (crazy hillbilly)(Posted 2012) [#1]
Import sidesign.minib3d

Graphics3D 800,600,32,1

camera=CreateCamera()

light=CreateLight()
RotateEntity light,90,0,0

sphere=CreateSphere(32)
PositionEntity sphere,0,0,5


Repeat

If KeyDown(205) Then MoveEntity sphere,1,0,0
If KeyDown(203) Then MoveEntity sphere,-1,0,0
If KeyDown(200) Then MoveEntity sphere,0,0,-1
If KeyDown(208) Then MoveEntity sphere,0,0,1

UpdateWorld
RenderWorld
Flip
Until KeyDown(1)

The code will not let me move the sphere and it says the exe has stopped responding. I have MinGW installed and I have the latest version of BlitzMax for Windows and it doesn't work right. Can someone please help me figure out what im doing wrong with this? Im sure im missing something just not sure what that is.

Thank you!

Last edited 2012


GfK(Posted 2012) [#2]
I'm 90% sure there's something else you need to do (execute a command) with MiniB3D when switching between it and native Blitzmax functions. Do any of the examples work?

[edit] Never mind, doesn't seem to be the case any more.

Last edited 2012


kfprimm(Posted 2012) [#3]
Need to use keycode constants instead of old BlitzBasic scan codes.

KEY_ESCAPE, KEY_LEFT, KEY_RIGHT, etc.


Captain Wicker (crazy hillbilly)(Posted 2012) [#4]
Okay thank you both but why when I add this onto my code the title doesn't appear but instead "BlitzMax Application" does?
Global AppTitle$="Ball Game"


Thanks Guys!


MikeHart(Posted 2012) [#5]
Because you just defining a global string variable? Remove the global.