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

#1
Hi,

In the project options of my game I want to tick the checkbox for fullscreen, but it's grayed out.
Any particular reason why? Do I need to make some other setting.

Only thing I can think of is that I'm running glbasic in a parallel desktop windows xp virtualmachine on my macbook. Could that have anything to do with it? (because on mac fullscreen is not supported through the options).
#2
Kitty,

I'm still a bit confused. I made a smaller image (357 X 308 pixels) and used loadspritemem to put the pixels in a an array. This works. But I expected to be using a 2 dimensional array, but the array is one dimensional and 357 x 308 = 109956 in size. How do I now retrieve the pixel color from this single dimensional array for let's say pixel at xy 25,25?

hope my confusion makes sense  :S
#3
Thanks guys for all your input!

As soon as I have some time I'm first gonna try the suggestions from Kitty Hello, that seems do-able. ;)

And as for you comment Erico, the map is made up of all different kind of shapes so no way to use squares unfortunately.
#4
Hi there,

I'm making a 2D game (well trying to) in which I use a map of a universe divided in about 80 regions. The regions have all kinds of random shapes and is an png image.

I'm having trouble figuring out how I know which region I'm in when clicking on it with the mousepointer. I want to show information about the selected region.
My first thought was to create acolor map by creating a duplicate of the map, give all the regions on this map a different RGB en drawing it outside the viewport. Now when I click on a region of the real map, I transpose those X,Y to the color map to find out what color is in the region (getpixel) and thus know which region I'm in and show the right information.

I've read on the forum however that getpixel is slow and inaccurate in that it can give different colors back when it should be the same. So my question is, is there an alternative to 'know' which region you click on a map (composed of random regionsizes).
To complicate matters, the map needs to be zoomable (one level of zoom-in) and moveable on x and y axis (when zoomed-in ).

I hope someone can help me out!

thanks in advance!
#5
Ah...shame on me. ;/

I thought I ran the last version because Glbasic is the most recent.

THe IDE was 10.202 instead of 10.283. After the upgrade, problem solved!!

thanks and sorry!
#6
Hi there,

probably real dumb question, but sometimes when i start working in the GLBasic IDE, the cursor down key does not respond. (it does respond in other software), so I have to use the mouse or enter to go down a line.
What am I doing wrong?

I'm running the latest version, under windows xp in parallels on a mac.

thanks in advance!
#7
darn! you're right!! Seems I installed an old download, version 9 something.

well thanks for the help! Input look a lot better now  :o
#8
When I use the following command:
INPUT name$, 180,100,TRUE

I get the following error when compiling:
error : wrong number of aguments : "INPUT" called with 4 args. Required: 3 to 3

So there doesn't seem to be a proportional parameter for input?????

I use the free version of GLbasic, downloaded it a week ago, so I'm sure it's a current version.

any thoughts?
#9
Hi there,

The PRINT command has this nice parameter with which you can swith between fixed and proportional printing. Is there a way to get the same result with the INPUT command?
Proportional printing?

regards,
Andrik
#10
thanks Darmakwolf and mentalthink!!

using the media dir and setting solved my problem.

Now on with experimenting!

regards,
Andrik
#11
Hi there,

I recently downloaded GLBASIC and right now I'm trying to get something to work but I guess I'm doing something wrong because I can't get loadfont to work properly.
I created a font with fontcreator "test.bmp" and saved in the root dir of my game.
In the game I run the following code:
LOADFONT "test.bmp", 1
SETFONT 1

PRINT "testing", 100, 100, TRUE   
SHOWSCREEN
KEYWAIT
END

When I run the code, I still see the small default font!! What am I doing wrong?

by the way, I run Glbasic on a mac via a windows xp parallels desktop virtual machine.

regards,
Andrik