Jump to content


LoRDMeO

Member Since 04 Jun 2008
Offline Last Active Oct 15 2010 01:49 PM

Topics I've Started

Need help about screenshots.

06 October 2010 - 05:25 PM

Lets say i have rooms called

room1
room2

in room1 there are many objects in the room. Lets say when i press space i want to take a snapshot of the room then goto room2 and change room2's background with taken snapshot.

how can i do this?

Do If An Application(my Game) Is Active

18 January 2010 - 05:13 PM

Hey there,

Im using these codes on step event for an object

window_mouse_set(room_width/2,room_height/2)

it immobilizes mouse position on center of screen.

My question is when user goes to desktop he/she doesnt move mouse because it is immobilized.

How to check if an application(my game) is active?

How To Get Resources From Files

17 January 2010 - 12:06 AM

if background_add_background("C:\background0.gmbck") = -1
{
show_message("error")
exit
}
background_get_texture("background0")


how can i replace and use backgrounds from files. When I do it with my script, it says

" Trying to get texture from non-existing background. "

how can i fix it?

Simple Question About Sprite_height

04 January 2010 - 06:23 PM

hey there

i got sprite named "spr_ball" it's both height and width are 32

how can i get this value in code

like

spr_ball.sprite_height   // failed

sprite_heght[spr_ball]    // has returned 0 ??

smt like that

SOLVED Thanks to

SenakuJin

Solution:

sprite_get_height(sprite_name)

If You Know Visaul Basic Net Language Please Help

04 January 2010 - 01:24 PM

Hey there

If you know visual basic NET language you maybe know mid(string, start, length) command. How can i use this command in GML?

if you dont know visual basic i will explain how it works

mid(argument0,argument1,argument2)

argument0 = source, string
argument1 = start point
argument2 = length

mid("hello",1,2) = "he"

mid("hey_there",3,5) = "y_the"

thanks for helping.