the reason for the language being not entirly english is because i made this game as a collage projact ,and not everybody knows english as well as they should

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 MenuQuote from: Khris on Tue 29/06/2010 10:43:10
You'd put the lines inside repeatedly_execute, a function in Global.asc that's executed every game loop.Code: ags // small offset from mouse cursor hotspot int x = mouse.x+3; int y = mouse.y+3; GUI*g = gCursor; // change gCursor to the scriptname of your GUI // make sure new coordinates are within screen limits if (x > 320-g.Width) x = 320-g.Width; if (y > 240-g.Height) y = 240-g.Height; // reposition gui g.SetPosition(x, y);
There's room for improvement; e.g. if you cursor is a TheDig style cross, you could move the text to the upper corner in the lower half and left corner in the right half of the screen.
Or you could keep it in one place while the mouse is still over the hotspot.
What you want to keep in mind is that for global behavior like this, you never, ever use functions specific to a single hotspot, like barefoot suggested in his first post.
Quote from: Rulaman on Tue 29/06/2010 07:28:06
It's really simple.
Make a gui (transparent if you wish) and place a label on it.
As label text write simple @OVERHOTSPOT@.
Make the GUI visible and place it somewhere on your screen.
In the manual search for: Interface text
@OVERHOTSPOT@ Name of the hotspot which the cursor is over
Greetings
Rulaman
Quote from: Crazy on Tue 29/06/2010 00:40:10
Looks very 90s ish in terms of the spacey vibe I get from the images.
What type of genre of game is this (other than science fiction)?
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.076 seconds with 16 queries.