Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Behavior stop not working

Behavior stop not working

Scheduled Pinned Locked Moved Help and Support
10 Posts 4 Posters 982 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SplitMindGamingS Offline
    SplitMindGamingS Offline
    SplitMindGaming
    wrote on last edited by
    #1

    I have a rock set to spawn on top of the screen to fall down using spawn area. I also have a person below dodging the rocks. I set up behavior with the rock that when it hits the person it destroys the object and also set up a behavior stop to stop spawning the rocks. Everything works but the behavior stop to stop spawning the rocks.

    MelideM 1 Reply Last reply
    0
    • SplitMindGamingS SplitMindGaming

      I have a rock set to spawn on top of the screen to fall down using spawn area. I also have a person below dodging the rocks. I set up behavior with the rock that when it hits the person it destroys the object and also set up a behavior stop to stop spawning the rocks. Everything works but the behavior stop to stop spawning the rocks.

      MelideM Offline
      MelideM Offline
      Melide
      wrote on last edited by
      #2

      @SplitMindGaming I didn't understand your problem well, but I think that you put the behaviors in the rock's behavior. If the rock is destroyed, it will stop spawning cause the behaviors now don't exist.

      Or, you haven't put a Timer or a behavior that trigger multiple times.

      So make sure the behaviors are not in the rock's behavior and put a behavior that activate multiple time such as a Timer.

      1 Reply Last reply
      1
      • MelideM Offline
        MelideM Offline
        Melide
        wrote on last edited by
        #3

        Also, don't put anything like this in the Bug Report category. I guess you haven't seen the rules to submit here : https://forum.hyperpad.com/topic/1105/rules-for-making-bug-submissions

        You better send this in the Help & Support category.

        SplitMindGamingS 1 Reply Last reply
        0
        • MelideM Melide

          Also, don't put anything like this in the Bug Report category. I guess you haven't seen the rules to submit here : https://forum.hyperpad.com/topic/1105/rules-for-making-bug-submissions

          You better send this in the Help & Support category.

          SplitMindGamingS Offline
          SplitMindGamingS Offline
          SplitMindGaming
          wrote on last edited by
          #4

          @XxWhiteHearrxX sorry just seen the forum rules. I beleive in this case it is a bug. I have attached screenshot. When the rock collides with the character its suppose to stop the spawn behavior of the rock. But it doesnt. I will try upload file as well.AF2038AC-73CF-491B-9333-1ADC02A17629.png

          1 Reply Last reply
          0
          • SplitMindGamingS Offline
            SplitMindGamingS Offline
            SplitMindGaming
            wrote on last edited by
            #5

            Stone Vs Caveman.tap

            1 Reply Last reply
            0
            • MurtazaM Offline
              MurtazaM Offline
              Murtaza
              Admin
              wrote on last edited by
              #6

              The screen shot helped!
              The issue is you're recursively spawning.
              What I mean is you're spawning rocks, that are spawning rocks.

              Each rock is a new instance, so a NEW spawn behaviour. So the behaviour off is actually working.... On that original rock. but you've already spawned a new rock by this point, and it will be On.

              Put your logic on another object that handles all of this.

              Also, you probably don't want to use while colliding, instead use Start colliding, or stop colliding.
              While colliding will continuously trigger until they are no longer touching. This may give some odd results. For example, try playing a sound on while colliding, it you will see the isue.

              SplitMindGamingS 1 Reply Last reply
              1
              • MurtazaM Murtaza

                The screen shot helped!
                The issue is you're recursively spawning.
                What I mean is you're spawning rocks, that are spawning rocks.

                Each rock is a new instance, so a NEW spawn behaviour. So the behaviour off is actually working.... On that original rock. but you've already spawned a new rock by this point, and it will be On.

                Put your logic on another object that handles all of this.

                Also, you probably don't want to use while colliding, instead use Start colliding, or stop colliding.
                While colliding will continuously trigger until they are no longer touching. This may give some odd results. For example, try playing a sound on while colliding, it you will see the isue.

                SplitMindGamingS Offline
                SplitMindGamingS Offline
                SplitMindGaming
                wrote on last edited by
                #7

                @Murtaza makes sense. How do i set it up to stop spawning all rocks upon colliding?

                Aidan_FireA 1 Reply Last reply
                0
                • SplitMindGamingS SplitMindGaming

                  @Murtaza makes sense. How do i set it up to stop spawning all rocks upon colliding?

                  Aidan_FireA Offline
                  Aidan_FireA Offline
                  Aidan_Fire
                  wrote on last edited by Aidan_Fire
                  #8

                  @SplitMindGaming I would recommend putting your logic that spawns the rocks inside another object. Either inside the player or perhaps inside a new invisible scenery object. If you do this, the behaviour off that turns off the rocks will stop all rocks from spawning. I would also suggest that maybe you should make the rocks delete themselves after some time otherwise they might build up and lag your game eventually.

                  SplitMindGamingS 1 Reply Last reply
                  1
                  • Aidan_FireA Aidan_Fire

                    @SplitMindGaming I would recommend putting your logic that spawns the rocks inside another object. Either inside the player or perhaps inside a new invisible scenery object. If you do this, the behaviour off that turns off the rocks will stop all rocks from spawning. I would also suggest that maybe you should make the rocks delete themselves after some time otherwise they might build up and lag your game eventually.

                    SplitMindGamingS Offline
                    SplitMindGamingS Offline
                    SplitMindGaming
                    wrote on last edited by
                    #9

                    @Aidan-Oxley i will give that a try. Thank you so much for your help.

                    1 Reply Last reply
                    0
                    • MurtazaM Offline
                      MurtazaM Offline
                      Murtaza
                      Admin
                      wrote on last edited by
                      #10

                      Moved this to Help and support, as it's not a bug.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search