hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login
    1. Home
    2. Bryan
    3. Topics
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 11
    • Groups 0

    Topics

    • BryanB

      Mini Golfgame

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      638 Views
      RobinsonXR
      You'll need to use something called the Z-order, where stuff can be behind or in front of something. Different parts of the images need to be cut out aswell.
    • BryanB

      Change layer

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support
      6
      0 Votes
      6 Posts
      710 Views
      Jack8680J
      @Bryan just move to layer behaviours, one for each layer, each with a different layer selected: [image: 622a0bdf-34b8-4190-9233-4b558d235fe7.PNG]
    • BryanB

      Multiple collisions

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support
      6
      0 Votes
      6 Posts
      764 Views
      Jack8680J
      @Bryan put all the objects in a tag (including object detecting the collisions), use a loop to count the number of objects in the tag (subtract 1 to exclude self), if number of objects colliding is equal to number of objects in tag except self ( can't collide with self), then the object is currently colliding with all objects in the tag. This is shown in the first screenshot: [image: 3de1e38b-093d-404c-b211-2ae2d2a6dbaa.JPG] To detect whether the object has ever collided with each object instead of detecting whether the object is colliding with all at the same time is similar, but the object detecting the collision is instead given a unique ID based on a global variable (so you can have multiple detecting objects that don't interfere with each other). A dynamic attribute is applied to all objects in the tag that it collides with so it only counts each object once. This is shown in the second screenshot: [image: 6e09fcf6-9f85-4df7-bfcd-14a2fc040430.JPG] The behaviours in both screenshots should work with spawned object and multiple detectors too, but if you don't have this they can be simplified down a bit (you don't need to count objects if you know how many there are and don't need and ID if there is only one object anyway. EDIT: to clarify, "set attribute" is the global variable, with a value equal to "ID (Add Values)", and "set attribute2" is a dynamic attribute with a value of 1 and the key "combine text".
    • BryanB

      If you press something it triggers something but there is a condition

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Help and Support
      2
      0 Votes
      2 Posts
      279 Views
      Aidan_FireA
      Here's one way: Started Touching (object B ) → Behaviour On (Started Touching1) + Behaviour Off (Started Touching2). Started Touching1 (object 1) (also make this behaviour off by default) → Load Scene (xy). Started Touching2 (object 1) → Hide Graphic or Destroy Object (object B ). If you can't figure it out using what I wrote there I can try to take a screenshot.
    • BryanB

      Lightning

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support
      24
      0 Votes
      24 Posts
      6k Views
      MurtazaM
      @Jack8680 good question.. I'm not sure.