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. Attribute default value not loading at game start

Attribute default value not loading at game start

Scheduled Pinned Locked Moved Help and Support
5 Posts 2 Posters 111 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.
  • MrAeon1111M Offline
    MrAeon1111M Offline
    MrAeon1111
    wrote last edited by
    #1

    Hello,
    I have an attribute “EmitterPosition” (Shoot emitter position) on an object (character) with a value set by default.
    When the game starts this value is not taken in consideration.
    When I do later a set attribute the set attribute works perfectly.

    I tried to put a timer on get attribute “EmitterPosition” I tried a few things but nothing seems to work.

    Do you have any idea, how to fix this problem?

    RobinsonXR 1 Reply Last reply
    1
    • MrAeon1111M MrAeon1111

      Hello,
      I have an attribute “EmitterPosition” (Shoot emitter position) on an object (character) with a value set by default.
      When the game starts this value is not taken in consideration.
      When I do later a set attribute the set attribute works perfectly.

      I tried to put a timer on get attribute “EmitterPosition” I tried a few things but nothing seems to work.

      Do you have any idea, how to fix this problem?

      RobinsonXR Offline
      RobinsonXR Offline
      RobinsonX
      wrote last edited by
      #2

      @MrAeon1111 Hello, can you share a screenshot of your behavior logic? One potential thing that could be happening here is that the order in which your behaviors are executed is wrong.

      For example, you could be triggering the Set Attribute behavior before running the behaviors responsible for outputting the values used in the behavior - this would explain why triggering the Set Attribute behavior later would fix it, since now it's using the updated output.

      1 Reply Last reply
      0
      • MrAeon1111M Offline
        MrAeon1111M Offline
        MrAeon1111
        wrote last edited by
        #3

        alt text

        1 Reply Last reply
        0
        • MrAeon1111M Offline
          MrAeon1111M Offline
          MrAeon1111
          wrote last edited by
          #4

          I would like to know how to set an attribute at the start of a scene.

          Here in this example how to have (Shoot Gun Emitter X Off set) get trigger when the game starts!

          What are the nodes that I need?
          Can you please explain how this works?
          Thanks

          RobinsonXR 1 Reply Last reply
          0
          • MrAeon1111M MrAeon1111

            I would like to know how to set an attribute at the start of a scene.

            Here in this example how to have (Shoot Gun Emitter X Off set) get trigger when the game starts!

            What are the nodes that I need?
            Can you please explain how this works?
            Thanks

            RobinsonXR Offline
            RobinsonXR Offline
            RobinsonX
            wrote last edited by
            #5

            @MrAeon1111 There are two ways.

            1. Behaviors that don't have anything attached to the top are triggered when the scene starts. We call these root behaviors. You can have your Set Attribute behaviors be root behaviors.

            2. In the editor, you can define object attributes from the selected objects like shown in the screenshot below.
              IMG_8283.jpeg

            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