Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Richard Rae

#1
Thanks for the helpful reply Jonaspm
#2
How do I do this MrTaToad?
#3
I am trying to compile an Android game for my Samsung Galaxy Tab2 10.1.I think I have put everything in the right place(Java JDK,Android SDK)but when I compile it come up with the following error.

Quote_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:8c0d2e73 - 3D, NET
Wordcount:64 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE
Exception in thread "main" java.lang.RuntimeException: Failed to create Q:\Compiler\platform\android\android-sdk-windows\add-ons.
   at com.android.sdklib.SdkManager.loadAddOns(SdkManager.java:665)
   at com.android.sdklib.SdkManager.createManager(SdkManager.java:144)
   at com.android.sdkmanager.Main.parseSdk(Main.java:221)
   at com.android.sdkmanager.Main.run(Main.java:118)
   at com.android.sdkmanager.Main.main(Main.java:102)
Buildfile: build.xml does not exist!
Build failed
.
BUILD STAGE 2: Build DEBUG and install on device
Buildfile: build.xml does not exist!
Build failed
finished Android build-script.
Android=C:\Users\RICHARD RAE\Documents\GLBasic\Samples\3D\CelShading\distribute\Android
success
#4
I think I am not explaining myself very well.Imagine that a cube was positioned at 0,0,0 and rotated 45 deg on the x axis and 45 deg on the y axis.I want the cube to rotate say 45 deg relative to the world x axis.If I use x_rotate then the cube would rotate on its own x axis not relative to the world x axis.I want to rotate the cube on the world axes no matter the rotation of the cube on its own axes.I hope this explains things more clearly.
#5
Does X_ROTATION not just rotate the object about its own axes?
#6
How do I make a 3d object rotate around the world axis,irrespective of the objects own roll,tilt or yaw angle.Thanks
#7
Just have to use my partners Samsung Galaxy S2. Better phone than the iphone anyway. She will be pleased lol
#8
Damn lol
#9
Does the same apply for the iphone 4?
#10
Does glbasic install onto the phone automatically?
#11
Is there a runner app for Glbasic(similar to yoyo games app for gamemaker)so that you can test your android game by connecting your phone to your computer?
#12
so you still have to give the parameter in the function the AS ball extension.This does not make the function very reuseable as you have to give it the type name.
#13
Sorry if this has been asked before but I am stumped!How do I pass a type to a function so I can do manipulation on it.

TYPE ball
x_pos
y_pos
colour
ENDTYPE

local balls[] AS ball

How would I pass this to a function so I could DIMPUSH a new instance of ball to the balls[] instance array.
Thanks in advance for any help.
#14
Can get the camera to go to the object position and look at it.The only problem is that if you try and rotate the camera around the object it works ok  around the x,z coordinates but flips and oscillates around the z,y and x,y coordinates.Anyway to do this? If you try the following code you will see what I mean.Is there anyway you can make the camera go completely round the axis?
Code (glbasic) Select
ang=0

WHILE(TRUE)

X_MAKE3D 1,1000,45


IF ang=360 THEN ang=0

X_CAMERA 0,y,z,0,0,0
y=SIN(ang)*200
z=COS(ang)*200
INC ang,1

X_DRAWAXES 0,0,0


SHOWSCREEN

WEND
/code]

#15
Not quite what I wanted.I want the camera to be at the same position as the object.This would be a dummy object that I would position in an orbit around 0,0,0.The camera would then look at 0,0,0.