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 - Yagami Raito

#1
Héhé ^^

Now i can say it : It's work PERFECTLY !

Thanks to you KhrisMUC and Ashen :)
#2
Your code is more simple Ashen, thank to you too.

When i said Its work  perfectly, I'm said it too fast, when i place the cursor on a button,hotspot,character, the name appair on top-left of the screen, but i want it follow the cursor and not staying in the top left.. How i do that with your code ?

I think it s with the line 1 "GetAtScreenXY(mouse.x, mouse.y);".
#3
Work Perfectly ! Thank you KhrisMUC !
#4
Hi there KhrisMUC !

First, Thank you for the answer of the first question , it s work perfectly !

But i have a problem on the second question, i implanted the code in my game, in the repeatedly_execute section, but when i launch the game i have an error message :

Error : Run_text_script1: error -6 runnin function repeatedly_execute :
Error : Null pointer referenced
in global script (line 14)

The line 14 is :  Button*b=gc.AsButton;

I haven't modified the code you posted here, i just renamed the label "cursorlabel"

Im searching why, but don't found, what Null pointer referenced mean ?

Ho and im using AGS 2.72, that's why this error appair ?
#5
Hello !

My question is, how i can change the text on a labbel by clicking on a button.

Well, I'm using a GUI of my creation, on this GUI, there is a Button, when i use this button,  the text on a label located on the same GUI change.

Ex : My button is called Fireball

-When i click on the Button called Fireball, the text on the label change for a text who explain the rules of the fireball (fireball is blablabla...).


Second question :

Im using an @OVERHOTSPOT@ systeme, where hotspot names appair near the cursor, and i want to know if the button name on a GUI can appair near the cursor too.

Sorry for my bad english I'm French.
Thank you in advance.
SMF spam blocked by CleanTalk