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

Topics - djtoon

#1
1. how do i show onely one of two menus ihave?
i have a main and a right click menu, how to i show the right click when i click the rightmouse button.

2.
#2
im getting this error? what is it?


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
.
#3
when i complie it dosent seem to fint my box2d.h.

the game compiles for android and pc ok.

any ideas?
10x
#5
any one has a starting code example of movement and rotation? im trying to make an old school style rpg like eye of the beholder, any one have an example code for movement and camera rotation?

10x in advance.
#6
hi look at this


i creatd this but i cant get the part where the angel of the plane is faceing the camera

any help whold be appriciated

10x
#7
hi
im making a top down game where enemys try to catch you
there is the code for enemy movement:

Code (glbasic) Select


FUNCTION enemyMove:
LOCAL pi = 3.14159265

FOR x=0 TO LEN(enemysFleet[])-1 STEP 1



//calculate distance between follower and target
    LOCAL distanceX = (b_BodyGetPosX(tmpObjxx)-b_BodyGetPosX(enemysFleet[x].obj))
    LOCAL distanceY = (b_BodyGetPosY(tmpObjxx)-b_BodyGetPosY(enemysFleet[x].obj))

    LOCAL  distanceTotal = SQR(distanceX*distanceX+distanceY*distanceY);

  IF distanceTotal <= 80000
LOCAL moveX=enemysFleet[x].turnRate*distanceX/distanceTotal
LOCAL moveY=enemysFleet[x].turnRate*distanceY/distanceTotal


//
LOCAL totalmove = SQR(moveX * moveX + moveY * moveY)
//
moveX = enemysFleet[x].speed * moveX / totalmove;
moveY = enemysFleet[x].speed * moveY / totalmove;
//



// b_moveObject( enemysFleet[x].obj,b_BodyGetPosX(enemysFleet[x].obj)+moveX,b_BodyGetPosY(enemysFleet[x].obj)+moveY,0)
//b_BodySetAngle(enemysFleet[x].obj,-angleInRadians);


LOCAL angleInRadians = ATAN(moveX, moveY);
LOCAL andleInDegrees  = angleInRadians * (180 / pi);



LOCAL velocityX =  SIN (   b_BodyGetAngle(enemysFleet[x].obj))*enemysFleet[x].speed
LOCAL velocityY = COS (   b_BodyGetAngle(enemysFleet[x].obj))*enemysFleet[x].speed
//




b_SetLinearVelocity(enemysFleet[x].obj,velocityX,velocityY);



IF enemysFleet[x].mission="attack"


b_ApplyTorque(enemysFleet[x].obj,b_BodyGetAngle(enemysFleet[x].obj)-angleInRadians);
b_SetLinearVelocity(enemysFleet[x].obj,velocityX,velocityY);






ELSEIF enemysFleet[x].mission="run"
b_SetLinearVelocity(enemysFleet[x].obj,-velocityX,-velocityY);

ENDIF


ENDIF






NEXT
ENDFUNCTION
////


i cant seem to get the enemy's to turn at you with difrent turn rates

any ideas?

10x
#8
any one done this?
the math is messing with my brain :)
#9
on regular screen size  480x320 im at 32+ fps
and  on retina i get 9

any workaround or someting?
#10
hi
im creating a glb function to read vertex points from vrml1 that i export from ac3d

for some reson i cant get the thing to work
here is the lib
test it and maybe fix and share :)
10x


[attachment deleted by admin]
#11
hi
im draw 2 polygons one after the other and it seems the engine connects the poly's together

any ideas why?
the arrays are difrent ones for the points for the polygon creation

#12
here is the game , forgot to post this :)
http://globalgamejam.org/2012/mofalona

its a party game where you take turns to finish a tower of bricks to reach the portal.
#13
could it work?
#14
any way or furure addon for glbasic?
#15
what is faster, x_drawobj or x_line?
#16
GLBasic - en / glsl shaders
2012-Feb-16
hi i found this, its a glsl shader that does all the photoshopp blending modes
http://mouaif.wordpress.com/2009/01/05/photoshop-math-with-glsl-shaders/

how do i implement this?

#17
i want to create this effect:
http://www.box2d.org/forum/viewtopic.php?f=8&t=7574

thay baiscly
blur the image and then add a color threshlod
any way to do that in glbasic?
10x
#18
hi i saw this thred:
http://www.glbasic.com/forum/index.php?topic=1391.msg9101#msg9101

and the demo fluid dosent seem to compile on the new glbasic?
any ideas how to do a full screen blur?
#19
GLBasic - en / http post
2012-Jan-02
i am useing an api from http://wiki.scoreoid.net/api/score/createscore/
it it done with netwebget?
i cant seem to make it work any ideas?
there are alot of examples there whats the best one to use with glbasic?
#20
GLBasic - en / savebmp path
2011-Dec-20
why isnt this saving on the path i wanted:

PRINT frameCounter,0,0,0
LOCAL path$="D:/frame"+frameCounter+".bmp"
SAVEBMP path$