Spawn Problem

SwaggedSwagged Member Posts: 50
edited November -1 in Working with GS (Mac)
i made a brick breaker game and i have a rule that when the panel the ball is bounced off of is touched then it spawns the ball, the problem im having is that every time i touch the panel it always spawns a new ball. i need it to spawn one ball and no more after that.

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Create an attribute called: Spawn, boolean starting true

    When panel collides with ball spawn & game.Spawn is true, change attribute game.Spawn to false, & spawn
Sign In or Register to comment.