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

#2581
Announcements / Super-TYPEs
2007-Apr-05
"FOREACH"... yay... no more BOUNDS in my FOR loops ;)
"DIMPUSH"... array as a stack?
"DELETE" ... pop off of stack?


Looks very cool, types are turning out to be REALLY powerful in GLBasic!
#2583
Because it irrelevant to the error I'm afraid.

Code there or not, the error revolves around functions returning types in this situation.
#2584
Sprite animation loader...

Slayers little function...

http://www.glbasic.com/forum/viewtopic.php?id=731

...solves this...

Code (glbasic) Select
player1= loadimage("tile.bmp",32,32,18)Will load in 18 sprite frames, 32x32, from the sprite map "tile.bmp"... in one command.

GLBasic is fast, simple to learn and cross platform (unlike all those other Basics you mentioned)

Inline "C" and access to the internal rendering pipepline makes it great if you feel like getting really technical BUT if you dont, the current command set is simple and powerful enough to create ANY type of game... an ISO RPG should be no problem at all. I would not worry about starting one in GLBasic.
#2585
On the IDE, the window to the right of the source code window, click on the "Files" tab...

This will show you a tree view of the files included in your project.

"Main Program" is your actual program
"Sources" is your included GLBasic libraries

To add a file to your project (and compile it as part of your program)... right click on "Sources" and then, via the pop-up menu, "Open File" to add your include file (or "New File" to create one)

A new tab will appear in the source window, allowing you to edit this file. Any functions, types or variables, within this file, are now accessible as part of the main program.
#2586
Code (glbasic) Select
TYPE Tvector
x
y
z
magnitude
ENDTYPE

FUNCTION vector_new AS Tvector: x,y,z,m
LOCAL result AS Tvector
result.x=x
result.y=y
result.z=z
result.magnitude=m
RETURN result
ENDFUNCTION

FUNCTION add_to_particles_array: a, b, vec AS Tvector
ENDFUNCTION

FUNCTION testf:
add_to_particles_array(1, 1, vector_new(100,100,0,0))
ENDFUNCTION
produces this error...

Code (glbasic) Select
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2007.083 - 3D, NET
Wordcount:8 commands

compiling:
C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp0.cpp: In function `DGInt __GLBASIC__::testf()':
C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp0.cpp:35: error: invalid initialization of non-const reference of type '__GLBASIC__::Tvector&' from a temporary of type '__GLBASIC__::Tvector'
C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp0.cpp:29: error: in passing argument 3 of `DGInt __GLBASIC__::add_to_particles_array(DGInt, DGInt, __GLBASIC__::Tvector&)'
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Time: 0.8 sec
Build: 0 succeeded
*** 1 FAILED ***
This is a small section of offending code I've tried to cut out of my own program... I must be doing this wrong?

:s
#2587
GLBasic - en / Toggle Output
2007-Apr-02
:)
#2588
GLBasic - en / Toggle Output
2007-Apr-02
F12 ?

Thanks Gernot :)
#2589
GLBasic - en / Toggle Output
2007-Apr-02
Is there a hot key for this?
#2590
GLBasic - en / Update: 4.142
2007-Apr-02
Quote from: bigsoftySmall problem Command Completion (CTRL+T), still makes the cursor vanish... not a biggie as a quick click of the mouse locates it to the mouse pointer.
This has started working half way through my current session... Ill try figure out the trigger is to make it work...
#2591
GLBasic - en / JDedit :) WIP
2007-Apr-01
Very nice! :)

Well done!
#2592
GLBasic - en / Update: 4.142
2007-Apr-01
Small problem Command Completion (CTRL+T), still makes the cursor vanish... not a biggie as a quick click of the mouse locates it to the mouse pointer.
#2593
GLBasic - en / Update: 4.142
2007-Mar-31
No problem Gernot, its always nice to have a new update. :)
#2594
GLBasic - en / Update: 4.142
2007-Mar-31
My GLBasic says 4.132 and its up to date, so it wont update to the new version?
#2595
Cool, this is like "space war"... the 1st game ever I think.