Search found 3 matches

by UniPopCorn
Wed Jan 04, 2017 11:11 pm
Forum: Support and Development
Topic: Unable to change variable with a function
Replies: 5
Views: 3660

Re: Unable to change variable with a function

Okay. It's the mousepressed event that is setting hero back to the originally chosen one. I think that the problem is that you don't clear heroes["mouseOver"][xxx] when one is selected, and the next time there's a click, first the button handler is called, then the heroes mouseOver detect...
by UniPopCorn
Wed Jan 04, 2017 1:26 pm
Forum: Support and Development
Topic: Unable to change variable with a function
Replies: 5
Views: 3660

Re: Unable to change variable with a function

pgimeno wrote:If I'm understanding your problem properly, the issue is that when you select a hero, then press Escape and then click "Select Hero" again, the hero selection screen doesn't appear again, even though when pressing 'R' it works as expected. Is that right?
That's absolutely right.
by UniPopCorn
Tue Jan 03, 2017 10:54 pm
Forum: Support and Development
Topic: Unable to change variable with a function
Replies: 5
Views: 3660

Unable to change variable with a function

Hello everyone. So I''m currently learning programming and to make things more interesting I decided to code a game and learn in process. So far it was great, but I ran into a problem I can't solve. The thing is I implemented a simple gamestate system (basically a string gamestate which changes to &...