Georgi's Recent Forum Activity

  • Thanks for your answer Ashley! I wasn't even aware of local variables :)

    I thought one should try to avoid global variables if not necessary.

  • I would like to check if the player's object is bigger than every other object.

    My code works like the following at the moment:

    global is_winner = 1

    for all opponent_objects:

       if opponent_object.width > player.width:

          is_winner = 0

    if is_winner == 1:

       player has won the game!

    I don't like to use a global variable for this purpose. Is there another way to do it?

    I hope the pseudocode is easy to understand, thanks very much in advance!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you!

  • Hi,

    I just started developing my first game with construct.

    Its going well so far but due to some Math calculations I would really appreciate a pow() function. E.g. Math.pow(5,2) = 25.

    I know, construct is still in development and its great so far. Maybe something for the next release :)

Georgi's avatar

Georgi

Member since 21 Nov, 2011

None one is following Georgi yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies