Jump to content


r1k

Member Since 25 Nov 2003
Offline Last Active Nov 16 2012 07:18 AM

Posts I've Made

In Topic: font_add_sprite problem

11 September 2012 - 01:37 PM

oh I understand now I would have had to use ord(chr(32)).
I used chr rather than ord because I did not actually know what the first space was (theres a bunch of blank spots that could have been space)

In Topic: open an image file and use a sprite

11 September 2012 - 12:25 AM

There is a function get_open_filename(filter,fname) to bring up the file browser, which will then return the file path. Use that returned file path to find the image for the sprite.

get_open_filename(filter,fname) Asks the player for a filename to open with the given filter. The filter has the form 'name1|mask1|name2|mask2|...'. A mask contains the different options with a semicolon between them. * means any string. For example: 'bitmaps|*.bmp;*.wmf'. If the user presses Cancel an empy string is returned.


thanks, just what I needed.

In Topic: room_tile_add bug?

26 March 2012 - 07:45 AM

I cant use a newer version becuse my old computer cant run them.  Though tile_add works, so thanks for confirming that it was just a bug.

In Topic: Simple room to room problem

02 March 2012 - 01:19 AM

have a title page room which sets all the global variables before sending you to the actual game.  it shouldnt be defined in any object that is going to be in each room otherwise it justs gets reset each room.

In Topic: Simple room to room problem

02 March 2012 - 12:54 AM

a global variable will work.  are you setting it in the characters create event or something?  it only needs to be defined once at the beggining of the game