hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Store reference of object

    Scheduled Pinned Locked Moved Comments & Feedback
    suggestion
    5 Posts 2 Posters 786 Views 1 Watching
    Loading More Posts
    • 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.
    • KamdroidK Offline
      Kamdroid
      last edited by Kamdroid

      It would save me heaps of time if I could store a reference of an object (e.g, in Box Container, or attribute, as Box Container can only be constant...), which I could use in places where an object is needed.

      e.g., make a box container that stores a reference of the player object, so I can reference that in all my logic regarding the player object, and if I need to change player objects, I change it in one behaviour (the reference),

      Instead of going through each object and changing the selected object in all player behaviours.

      D 1 Reply Last reply Reply Quote 1
      • D Offline
        Deeeds @Kamdroid
        last edited by

        @Kamdroid Actual variables, with names/ID that can be referenced would solve MANY problems and massively increase the capability of the engine and the productivity of those using it.

        Leaving out one of programming's greatest advantages is bizarre.

        KamdroidK 1 Reply Last reply Reply Quote 0
        • KamdroidK Offline
          Kamdroid @Deeeds
          last edited by

          @Deeeds I totally agree.

          The Box Container behaviour feels like a variable (except it should also let you select the type of variable, e.g. int or string),
          it’s just that they made it so it can only be set once, not sure why they would though.

          But I’d also like the option to type in the name of a variable rather than dragging in the “output” of a behaviour.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            Deeeds @Kamdroid
            last edited by

            @Kamdroid There should be a drop down list for variables and broadcasts just like there is for picking attribute names, to avoid typos, etc.

            KamdroidK 1 Reply Last reply Reply Quote 0
            • KamdroidK Offline
              Kamdroid @Deeeds
              last edited by

              @Deeeds This. Totally forgot about listing stuff, would love to see this implemented.

              1 Reply Last reply Reply Quote 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
              • First post
                Last post