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

    Wrap screen doesnt work on relative position

    Scheduled Pinned Locked Moved
    Fixed
    4
    12
    418
    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.
    • SplitMindGamingS
      SplitMindGaming
      last edited by

      Alot of my objects i have the % position on so it saves me the headache of really trying to make the game fit for every screen. Now i dont know if this is a bug but the moment i put wrap around screen on an object with the percent sizing on. It doesnt work. It actually dissapears from my game completely. Is this a bug? Is there a work around to get relative position items to work with wrap to screen? I included a screenshot of the positioning im talking about. 849466D2-E67A-4763-8C3A-29EA0183D9DD.jpeg

      1 Reply Last reply Reply Quote 0
      • MurtazaM
        Murtaza Admin
        last edited by Murtaza

        This sounds like a bug, We'll try to get it fixed for this upcoming update if that is the case. @Hamed may reach out for more info.

        SplitMindGamingS 1 Reply Last reply Reply Quote 0
        • Aidan_FireA
          Aidan_Fire
          last edited by Aidan_Fire

          I just tested this quickly and there must be more to it than this because relative position didn't matter for me. I tried 2 things: wrap around screen with Move By behaviour, and wrap around screen with a drag and drop physics object. The physics object always wrapped around the screen correctly whether or not I had relative turned on, and the Move By object never wrapped around screen even when I had relative turned off (so many your bug is more like wrap around screen doesn't work with Move behaviours?).

          What exactly are you using in your project?

          Just in case this is somehow specific to device/iOS, I'm on iPad Air and latest version of iOS 12 (not 13).

          SplitMindGamingS 1 Reply Last reply Reply Quote 0
          • SplitMindGamingS
            SplitMindGaming @Aidan_Fire
            last edited by

            @Aidan-Oxley i used it for 2 things. My game is vertical so i have this laser that wraps around the screen. It shoots to the left and comes back out the other side. The way wrap around the screen is suppose to work. When i have relative on sometimes it works. Most of the times you will see it shoot to the other side and never return back. Its corrected when i turn off relative positioning. The other use is simply to wrap a secondary background image vertically upwards. When doing this you can see the image on screen but by the time my character flies to the top the image disappears. This again is fixed when relative positioning is turned off. However if this is off. Almost all my items are in the incorrect location when simply switching to the 4.3 screen to the ipad pro. And apple just released a note saying all games must support all screens for ipad if its an ipad game. And all screens for iphone. If its in iphone game. So creating just for the 4.3 screen doesnt seem like a go now as it also has to support the ipad pro. But the game will play. Its just that everything is misaligned.

            SplitMindGamingS 1 Reply Last reply Reply Quote 0
            • SplitMindGamingS
              SplitMindGaming @SplitMindGaming
              last edited by

              This is on an ipad 6th generation in portrait mode.

              1 Reply Last reply Reply Quote 0
              • SplitMindGamingS
                SplitMindGaming @Murtaza
                last edited by

                @Murtaza i just emailed you my project file also with the instructions to see the glitch. Hopefully it makes it to the update if it is a bug.

                1 Reply Last reply Reply Quote 0
                • HamedH
                  Hamed Admin
                  last edited by

                  @SplitMindGaming I can't reproduce this in the way you're describing. Can you make a simple project and send us that? Preferably not the one you're working on because it has a lot of behaviours and will be hard to debug

                  SplitMindGamingS 1 Reply Last reply Reply Quote 0
                  • SplitMindGamingS
                    SplitMindGaming @Hamed
                    last edited by

                    @Hamed I’ve sent the email let me know if u received the file

                    1 Reply Last reply Reply Quote 0
                    • SplitMindGamingS
                      SplitMindGaming
                      last edited by

                      Here is what I mean by relative position turned on.B2655B9B-E691-4033-B392-6977E58F508F.jpeg

                      Aidan_FireA 1 Reply Last reply Reply Quote 0
                      • Aidan_FireA
                        Aidan_Fire @SplitMindGaming
                        last edited by Aidan_Fire

                        @SplitMindGaming Until that's fixed, here's a working seamless (no stuttering, no visible black lines) simple example of a manually wrapping background object:
                        https://go.aws/2Yh34NR
                        The only condition it won't work properly in is if the player can teleport longer than a screen distance away to a new location instantly, then the background might disappear for a bit before coming back. I think I know how to make one work under that condition too, but this was easier and more simple to understand how it works.

                        It would also work if you had one massive object that looks like all 9 of the background objects joined together. All logic is in the middle background object (I forgot to give them their own layer), and the rest of them are tagged.

                        Also I found another small problem with using relative position: Get Position can never output relative position, only position in metres. So I had to manually make relative position as well using Get Screen width and height.

                        SplitMindGamingS 1 Reply Last reply Reply Quote 0
                        • HamedH
                          Hamed Admin
                          last edited by

                          @Aidan-Oxley thanks! I also fixed this bug.

                          1 Reply Last reply Reply Quote 0
                          • SplitMindGamingS
                            SplitMindGaming @Aidan_Fire
                            last edited by

                            @Aidan-Oxley thanks aiden

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post