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

#1726
The blue line should be the time left until the demo exits, you only have 2 minutes to test your game. That one will be gone together with the demo sign when you buy the licence
#1727
Bug Reports / Error ......
2007-Oct-16
One tip for beginner programmers is to indent your code. What I mean is every time you use something that creates a block that needs to be terminated lower down, you indent the lines inbetween:

For example:
Code (glbasic) Select
LOCAL Y = 25
WHILE TRUE
    IF X > Y
        INC X, 5
    ENDIF
    SHOWSCREEN
WEND
This makes your code much easier to read and will save you lots of headache later on :-)
#1728
Nicely polished!

One thing though: You can still turn on / off lights when the level is over and waiting for pressing y/n. Mabe make it check for a mouse button too so you don't have to find the Y button on the keyboard all the time? :-)
#1729
This returns syntax error since last update:
Code (glbasic) Select
LOCAL x = 0, y = 0
#1730
Stupid question: Where do I find this WIP? I looked thru the showcase on the page and can't find anything named WIP.
#1731
Mini example
but after updating to IDE version 5.040 it seems to be working fine, thanks!

Code (glbasic) Select
// IDE Version: 5.037

GLOBAL sx,sy,width
GETSCREENSIZE sx, sy
width = 40

// This gets the wrong result
GLOBAL y1 = sx / width
DEBUG " y1=" + y1 + " sx=" + sx + " width=" + width + "\n"

// If I do the same but split the line I get the correct result
GLOBAL y2
y2 = sx / width
DEBUG " y2=" + y2 + " sx=" + sx + " width=" + width + "\n"
#1732
z was not zero, the only thing I had to do to fix it was to move down the "= y / z" on the line below, put an x in front and then it worked.
#1733
GLBasic - en / Playing music
2007-Oct-07
Is it possible to start playing an MP3 at a certain position in the file? For example if the user has quit the player I want to be able to start the audiobook where the user left.
#1734
Not to make anyone cry again but...

Why is it I can't assign a value to a global and at the same time compute a new value, like this:

Code (glbasic) Select
GLOBAL x = y / zIf I look into variable x now with debug I get the answer -1.#IND

if I do this it works as expected:

Code (glbasic) Select
GLOBAL x
x =  y / z
I saw you Gernot use the first line in your examples so I started doing this myself and at the last update my game broke down :-)


(And no, this is not the actual program, just the simplest recreation of the problem, you know who you are :-)

Do we get a bug-report forum? And can we start posting bugs in separate threds so they are easier to keep track of? Not bake them into the announcement thread of an old version? (Never wanted to be a forum moderator but I'm used to nicely moderated forums :-)
#1735
I don't see why not, just do:

Code (glbasic) Select
LOADSPRITE "picture1.png", 1
LOADSPRITE "picture2.png", 2
LOADSPRITE "picture3.png", 3

WHILE TRUE

DRAWSPRITE 1, 0, 0
SHOWSCREEN

DRAWSPRITE 2, 0, 0
SHOWSCREEN

DRAWSPRITE 3, 0, 0
SHOWSCREEN

WEND
No need to clear the screen inbetween, unless you realy want a black screen between the pictures.

Only problem you might find is that it can be troublesome with long filenames and big/small letters in the GP2X so stay away from them both :-)
#1736
A tip: Write an english version, we don't want GL-Basic to be confined to the german market, do we? :-)

English = more target customers = more developement, right?
#1737
I don't fully understand all but did you make a plugin for Lua or some sort of routines for using lua in projects?

I haven't used Lua yet but what I saw last time I peeked at it I though it was mostly confusing :-)
#1738
I'm wondering if anyone else have troubles with the editor window not focusing after the game closed? There is no cursor but if you press up or down the view will scroll. Mouse wheel doesn't work until you click the editor window.

Also, when I click a certain position in a line and press arrow up I don't expect the cursor to jump to the first position of the previous line unless that line is empty.  It seems it's just a question of the old x position not getting updated when you click with the mouse.

I know it is small things but they are not intuitive. Mabe something for your list of "rainy day" tasks? :-)
#1739
Using ALPHAMODE -.999 seems to work nicely for me at least. Thanks!
#1740
GLBasic - en / Newton
2007-Sep-21
no worries with that for my sake, I'm soon buying the full package but might be nice for future demo-programmers that wants to try the language. Any chance for a linux compiler or is Wine supported and will it be supported in the future?