Need help with multiplier.

FloridaGamesFloridaGames Member Posts: 328
edited November -1 in Working with GS (Mac)
Im making a game where you shoot targets and each time you hit target your multiplier increases by one. but i want to make it so when you miss, you multiplier goes back to one. Ive tried "when collides or overlaps with background change attribute to one, but the targets also overlap the background so it always stays at one.
Any suggestions?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    You need to an invisible actor and place it so that it only gets hit when you miss. Then put your multiplier reset code in there.
  • FloridaGamesFloridaGames Member Posts: 328
    thanks scitunes but in future lvs the targets are going to be moving. Is there something else i can try?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    What's the viewpoint on this? Unless it is a fake 3d sort of thing you should be able to have an invisible actor at the edge of the screen that only gets hit when there is a miss. In the bullet you will need a rule that destroys itself when it hits a target. That way it will only hit the invisible actor when it does not hit a target. the targets can be moving and this would still work.
  • FloridaGamesFloridaGames Member Posts: 328
    The bullet doesnt travel an X or Y distance. You move a reticle(little aiming cross thing that you see in first shooter games) and when space bar is hit actor(bullet) spawns where the reticle was. So yeah it kind of is a fake 3d game.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You're gonna have to have an attribute that detects when you shoot, and wether or not a score count has increased when you shoot, and if there is no increase, then set the attribute back to 1.
  • FloridaGamesFloridaGames Member Posts: 328
    What type of attribute would i use?
  • FloridaGamesFloridaGames Member Posts: 328
    SlickZero said:
    You're gonna have to have an attribute that detects when you shoot, and wether or not a score count has increased when you shoot, and if there is no increase, then set the attribute back to 1.

    Yea you see, im new to gs and have no idea exactly i would do all that
  • FloridaGamesFloridaGames Member Posts: 328
  • FloridaGamesFloridaGames Member Posts: 328

    heres a video
  • FloridaGamesFloridaGames Member Posts: 328
    bump
  • jamesmunro2jamesmunro2 Member Posts: 130
    Hey TacoStand...

    Problem is we would need to look at how you set up the collision detection for the hitting in order to determine how to detect a miss. There are too many different ways to set up "target hit" to figure out "target missed".
  • FloridaGamesFloridaGames Member Posts: 328
    thanks but i finally figured it out.
Sign In or Register to comment.