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 - equinox

#1
I have this code but when I press A on the gp2x demo crashes and I have to turn off&on the GP2.

Where am I wrong?

Someone can 'help me?

Tnk1000.
Code (glbasic) Select

SETSCREEN 320,240,0
LIMITFPS 60
LOADFONT "media/gfx/FONT.bmp", 0

main()
END

FUNCTION main:
WHILE KEY(30) = 0 OR KEY(44) = 0
  DRAWRECT 0,0,318,238,RGB(0,128,255)
  SETFONT 0
  PRINT "Move JACK (THE BABY) con le frecce",10,10
  FINE();
  SHOWSCREEN
WEND
ENDFUNCTION

FUNCTION FINE:
IF KEY(44) = 1
  END;
ENDIF
IF KEY(30) = 1
  END;
ENDIF

ENDFUNCTION



//-----------
GP2X     Key(s)              PC-Key
--------------------------------------------
DPad     203,205,200,208,57  Cursor Keys/Space
Volume   201,209             PageDn/PageUp
Shoulder 42, 54              LShift/RShift
Start    28                  Enter
Select   15                  Tab
A,B,X,Y  44,45,29,58         A,D,S,W
         30,32,31,17         Y,X,LCtr,CapsLock
Vol +&-  01                  ESC
#2
Tnk1000.

This code was what I was looking.
#3
There will be opportunities can have X, Y, Z, for a just ordering of depth of objects (depth-order) in GLBasic-2D function ?

Tags: zorder, z-order, z order
#4
Bug Reports / Link bad.
2010-Feb-27
Hi a t all,

this link not work---> http://www.glbasic.com/beta/glbasic_sdk_7rc2.exe
#5
Hi, which version of Linux is used on the Xbox, to try an exe made with GLB?

Tnk1000.
#6
hi,
can glbasic,run midi music in GP2XF200?

tnK1000
#7
Tutorials / Re: Z-DEPTH ?
2009-Feb-12
In yoUr exemple, I dont FIND guy.png.

Quote from: Moru on 2009-Feb-08
Look at Mappyloader on my homepage, gamecorner.110mb.com. If you set a stone or a tree on layer 1, the player will be in front of the stone/tree when he is lower down, if he goes up he will be covered behind the stone/tree.

Or if you just want it a bit easier, if you want something to cover something else, draw the sprite you want on top, last.

eg:
Code (glbasic) Select
DRAWSPRITE player, 50, 50
DRAWSPRITE stone, 50, 50


For this you need to sort your objects on Y coordinate. Look for the example SORTARRAY in the help.

#8
Quote from: Schranz0r on 2009-Feb-09
hehe

Use layers:

Code (glbasic) Select
// L = Layer ( 3 layers or something more :D )
Level[L][X][Y]

FOR L = 0 TO 2 // 3 layers
    FOR X = 0 TO 99 // 100 X-Tiles
        FOR Y = 0 TO 99 // 100 Y-Tiles

            SELECT L
                CASE 0 // behind the Player layer
                    DRAWSPRITE Level[L][X][Y], X*Tilesize, Y*Tilesize
                CASE 1 // Player and collision layer
                    DRAWSPRITE Level[L][X][Y], X*Tilesize, Y*Tilesize
                    CheckCollision()
                    Player() // Your player drawing and movement
                CASE 2 // the "coverlayer"
                    DRAWSPRITE Level[L][X][Y], X*Tilesize, Y*Tilesize
            ENDSELECT

        NEXT
    NEXT
NEXT


I can make a little example, if you want?

Yes,tnk1000. If yuo can,if you can, I will very happy!!!
#9
Hi,
is an example of how a character goes behind a rock and is covered. As in games rpg?
#10
Hi,

in the code sorge ,

IF ANIMCOLL(1,en.status,en.enx,en.eny,2,0,bull.bulx,bull.buly)<--this code not
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2007.363 - 2D, WIN32
"Lesson Thirteen.gbas"(177) error : call to undefined function : ANIMCOLL

Tnk for help.

#11
You can explain me,please, how to use and to compile the files that I find in the file zip? 

Tnk1000.
#12
Hi KH,

If I put my code line on, you could look at the to see where mistake?




...I am having difficulty to systemize it. ..ma not there I succeed alone.   
#13
FIRST: Thanks still to all for the help that you are giving me. 

....px0, py0: pixel coodinated for point 0,0,0 in world coordinates


I should use this function,KH ?

X_SCREEN2WORLD sx#, sy#, sz#, wx##, wy##, wz##
Maps the 2D screen coordinates sx#, sy#, sz# into the 3D world coordinates wx##, wy##, wz##.

px = px0 + x*bw - y*bw
py = py0 -y*bw +x*bw - z*bh....This code serves to move the cube and not to make it become small while goes towards the fund of the room? 


Tnk1000.
#14
http://www.webalice.it/equinox1/back1.jpg

Thanks boys for the reply. 

I do not understand what it is ---> phi)*scale

i agree to be able to move in these directions, and the sprite remains of the same dimension: is possible? 

same dimension ---> http://www.webalice.it/equinox1/800x600.jpg

#15
Hi at all,

Instead of to use for the motion, like itself pou' to do to use the motion in angles? 

for example: X = X + ang(0.5467) or if wanted to do motive in diagonal

We say to 45.54567° ? 

Tnk1000.