Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Mar 2012
Offline Last Active Apr 22 2012 10:45 AM

Posts I've Made

In Topic: Making action delay on keyPressed

22 April 2012 - 06:11 AM

Hmm, there is main thread, which controls animator function, but to create another thread to do such thing, I think is not ergonomic. And yes, it is a turn based game, player hits, enemy counter-attacks. And please, tell me more about flags, because currently character object reacts on key presses and immediately executes some functions like attack, jump and change image. I tried to delay enemies attack action in such way:
if(ENTER pressed) {
				 executionTime = currentSystemTime + 1000; // delay for 1 sec
if(ENTER pressed && currentSystemTime >= executionTime) { attack }

but it simply doesn't works, it is only performed once (execution time is equal to current time) and later execution time is always greater than current system time. So could you tell me more about game states? I understand, that after certain action it should change, but how it is performed? I mean technically, game sleeps during state change or what?

In Topic: Creating object in external class

11 April 2012 - 01:15 PM

At least, how to reach that weapon object?

In Topic: Creating inGame menu

19 March 2012 - 02:15 PM

yes, I am just exactly reading about it, I will repaint that stuff :)

In Topic: Creating inGame menu

19 March 2012 - 12:28 PM

Can you give advice, how to put objects other objects like buttons on the background? Because my game background is hiding that objects, they are under background, how to take them out?

In Topic: Creating inGame menu

19 March 2012 - 11:08 AM

ok, I will try :) thanks for yout continuous support :)