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.


Messages - kaotiklabs

Pages: 1 [2] 3 4 ... 21
16
Im having troubles with z_print.

the fonts are been writen in a black layer, without aplying alpha.
should I apply something else?

17
GLBasic - en / dpi on iPhones
« on: 2012-Jun-10 »
Hi mates,

Just a trivial question that has crossed my mind several times.

When you develop for devices like iPhone with really big screen dpis, did you do all the graphics stuff at 300 dpi (iphone screen dpi) or at a usual 72 dpi??
Is there any visual difference?

I use to do it all with 72 dpi but I´m not sure if I´m doing right when looking for best aesthetics.
Thanks!

18
GLBasic - es / Re: Error? ayuda porfavor
« on: 2012-Jun-09 »
No me hagas mucho caso pero a bote pronto diria que pruebes a substituir

IF a$ = "palabra" OR "vivir"
por
IF a$ = "palabra" OR a$ = "vivir"

lo mismo para el otro IF posterior

19
Yo tengo el 1 y va de lujo  =D
Buena compra.

20
GLBasic - en / Re: Problem with DELETE
« on: 2012-Jun-08 »
Te lo explico en español para no liarme.

GLBasic funciona internamente en C. Los arrays en C usan punteros.

Me pasaba una cosa rara al usar arrays en GLB y pensé que habria algún bug en el código en C de Gernot.
En GLB no hay punteros, por lo que no podemos usarlos directamente.
Cosa que no implica que no existan de verdad y puedan dar problemas.

No se si me explico.

21
GLBasic - es / Re: van las inapp purchases?
« on: 2012-Jun-07 »
Fantástico.

Pensaba que habia algún problema con las versiones nuevas de IOS.

22
GLBasic - en / Re: Problem with DELETE
« on: 2012-Jun-07 »

Well, Im not using pointers directly in my GLB code but they are beeing used internally for handle all the arrays in C.
The weird behaviour did me think there was an "internal" issue.
 

23
GLBasic - en / Re: Problem with DELETE
« on: 2012-Jun-07 »
Hehehe, I followed your advices and it worked perfectly.
Thanks mates!! You are great!


24
The tablet arrived last friday!!!  =D

I´ve been on holidays so I had near no time to play with it.
It will be really handy for porting all the stuff to Android!  =D =D =D

It feels good and the performance is really fine.  ;)

I have tried to compile something but it seems Win 7 is not recognizing it properly and the apk is not beeing installed. I believe its a problem with the usb drivers. could be?
I'm trying to contact the manufacturer in order to solve it.

Tomorrow I will try to install it directly using an SD.



[attachment deleted by admin]

25
GLBasic - en / Problem with DELETE
« on: 2012-Jun-06 »
Hi,
I have an enemy type with an array inside wich is used for the A* algorithm result.

If I delete an enemy inside a FOREACH with the DELETE command, the arrays containing the A* result of the rest of the enemies is been modified. It seems like a problem with the pointers, maybe?

In other words, when I deleted an enemy, all the other enemies' paths are messed.

For better understanding I will post you the code.
Thanks in advance and hope anyone can guide me correctly :)

Code: (glbasic) [Select]
TYPE TEnemy
x
y
w
h
dx
dy
speed
life
path[]
pathlength
ENDTYPE

Code: (glbasic) [Select]
FUNCTION SpawnEnemy:

LOCAL temp AS TEnemy
temp.x = (sx-1)*RND(1)
temp.y = RND(sy-1)
temp.w = 26
temp.h = 34
temp.life = 100
temp.speed = 1

temp.pathlength = FINDPATH(map[], temp.path[], 0.0, temp.x/mapstep, temp.y/mapstep, (sx/2)/mapstep, (sy/2)/mapstep)

IF temp.pathlength > 0
DIMPUSH enemies[], temp
ENDIF

ENDFUNCTION

Code: (glbasic) [Select]
FUNCTION MoveEnemies:
FOREACH temp IN enemies[]

LOCAL a = temp.path[0][0]*mapstep - temp.x
LOCAL b = temp.path[0][1]*mapstep - temp.y
LOCAL m=SQR(a*a + b*b)

IF m < 1
//reached checkpoint
IF LEN(temp.path[]) > 1
DIMDEL temp.path[], 0
ELSE
//reached objective
DELETE temp
ENDIF
ELSE
temp.dx = (a/m) * temp.speed
temp.dy = (b/m) * temp.speed"
ENDIF

INC temp.x, temp.dx
INC temp.y, temp.dy

IF temp.life <= 0 THEN DELETE temp
NEXT
ENDFUNCTION



26
GLBasic - es / van las inapp purchases?
« on: 2012-May-28 »
Buenas,

quisiera saber si a dia de hoy las inapp purchases funcionan y de ser el caso donde puedo encontrar la última versión del código.

Tengo que empezar un proyecto en breve y necesito el tema de las compras obligatoriamente. No quiero tener que hacerlo en cocos sólo por la tienda.

He estado buscando por el foro y está todo el tema bastante liado con varios hilos desperdigados.


27
Announcements / Re: Some fun.
« on: 2012-May-26 »
looking good!

28
Thanks to all, it was a hard weekend!

30
you god!!!

 :nw: :nw: :nw: :nw:

Pages: 1 [2] 3 4 ... 21