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

Topics - Outcast

#1
Hello peoples! Here's the latest situation.

I'm trying to create one GUI panel that has many (20+) possible pictures, to do this I tried using
Code: ags
 gExamineIcon.BackgroundGraphic = Picture; 

The name of the GUI button is gExamineIcon and 'Picture' is the variable number of the sprite.

What happens is the computer displays the error: BackgroundGraphic is not a public member of 'Button'. Check spelling.

Please help. I think Roger is laughing at me. :cheesy:
#2
I have a Global variable to keep track of money(int Money). But I'm having problems when my character changes rooms.

Let's say my character starts off with $1000 in the global variable, and then find $1000 more. I used the repeatedly_execute function to handle calculations but when I change rooms the money is back to $1000.

The values always revert back to the initial value of the global variable when the room changes despite any adding or subtracting that DID work in the first room.

My local scripts can read a global variable and use it, but how do I change the global variable so that it stays changed globally from various rooms

Thanks, any help appreciated.
SMF spam blocked by CleanTalk