logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login
    1. Home
    2. Jack8680
    • Profile
    • Following 3
    • Followers 5
    • Topics 44
    • Posts 510
    • Best 89
    • Controversial 0
    • Groups 0

    Jack de Wilde

    @Jack8680

    104
    Reputation
    841
    Profile views
    510
    Posts
    5
    Followers
    3
    Following
    Joined Last Online
    Website jackdewilde.com Location Queensland, Australia

    Jack8680 Unfollow Follow

    Best posts made by Jack8680

    • RE: Tutorial: how to map a 2-dimensional grid structure/matrix to a 1-dimensional array and back again

      @mc-games you can put arrays in arrays. For example in your 5*5 grid, you can have 5 arrays inside an array. It's a bit hard to explain, but here is a 2d array of your grid:
      [
      "["0,0","0,1","0,2","0,3","0,4"]",
      "["1,0","1,1","1,2","1,3","1,4"]",
      "["2,0","2,1","2,2","2,3","2,4"]",
      "["3,0","3,1","3,2","3,3","3,4"]",
      "["4,0","4,1","4,2","4,3","4,4"]"
      ]

      The index of the main array is the X value, then the index of the inside arrays are the y value. For example, if you want the object at 2,4, you would get the array at index 2, which will output the array ["2,0","2,1","2,2","2,3","2,4"]. Then you can get index 4 of that output, which will give the value 2,4. Note that the hyperPad forums are hiding the backslashes in the array, they are automatically created when you use modify array with characters that it might interpret as closing the main array/values:0_1492133730761_IMG_3175.PNG
      I've also formatted the array, it would actually like like this:
      ["["0,0","0,1","0,2","0,3","0,4"]","["1,0","1,1","1,2","1,3","1,4"]","["2,0","2,1","2,2","2,3","2,4"]","["3,0","3,1","3,2","3,3","3,4"]","["4,0","4,1","4,2","4,3","4,4"]"]

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Coding Sucks

      @deeeds, I find coding fun when I'm making something that I want to make, without time constraints or monetary investment.

      Writing
      Painting
      Drawing

      I prefer coding over these, and I see them as similar things; having an idea in mind and bringing it to life.

      I play games a lot, and so I want to make games that others would enjoy. I might not succeed or even finish a game, but I still enjoy doing it as a hobby at the moment.

      If/when I'm doing it as a job I might not like it as much; I don't know since I haven't done it.

      posted in General Discussion
      Jack8680J
      Jack8680
    • Preloading Breaks BMFonts

      Downloading a project that preloads a scene containing BMFonts, without ever going into the editor, causes all of the text to become black rectangles like this:
      0_1525931937313_IMG_1518.PNG

      It seems to completely break the font used in the project, even when restarting hyperPad.

      The bug doesn't happen if you open the scene of the labels before ever playing it. Here's a sample project, make sure to press play without opening the project: http://bit.ly/2K7bbm2

      posted in Can't Reproduce / Expired
      Jack8680J
      Jack8680
    • RE: Delete scene does not clear object/behaviour name memory

      Checking the sqlite file inside a project Aidan sent me, it seems like when a scene is deleted the objects aren't.

      He has 231 objects in the sqlite file, which is way too many; and I see object names that don't show up in his scene.

      @Hamed @Murtaza DELETING A SCENE DOESN'T DELETE THE OBJECTS

      posted in Bug Reports
      Jack8680J
      Jack8680
    • Suggestion: Dynamically Join and Leave Tags

      @administrators I think it would be really useful if there was a behaviour that allowed for dynamic or predefined tag joining/leaving, in the same way that an attribute can be set.

      An example of where this could be useful is that in a dungeon project I'm collaborating on, we have loads of rooms, each filled with objects. Each of these objects is assigned an ID depending on what room they are placed in, so when a player enters that room, all objects are disabled except the room the player is in. Right now, We have to use a for each loop that gets the ID of every single object to decide whether to enable or disable it. This causes the game to freeze for about half a second when travelling between rooms. The main problem is that there is no way to select a spawned object, and this would change that so we could just directly select the tag with the ID of the room.

      posted in Comments & Feedback
      Jack8680J
      Jack8680
    • RE: Input fields update?

      @iTap-Development They update when you run them. For example, if you have a text input and then a set input field that sets something to the text input, once you run the input field, it will set it to the last thing entered in text input.

      posted in Help and Support
      Jack8680J
      Jack8680
    • RE: Dynamic Input to all behaviours

      @Kamdroid this would also be great for games that are procedurally generated or store the levels as arrays, etc. so we don't need to use a ton of 'if behaviours' to convert the id of a tile to a graphic.

      I'd also like to be able to download graphics with http requests and use them with set graphics, so we can use user created content and mods.

      posted in Comments & Feedback
      Jack8680J
      Jack8680
    • RE: Input fields update?

      @iTap-Development They update constantly or when they are used

      posted in Help and Support
      Jack8680J
      Jack8680
    • Suggestions

      I haven't been using hyperPad much for a while now, but here are some things I feel would be very nice to have:

      • A time output from music/sounds, so we can make rhythm games without them desyncing after a while or when pausing/lagging.
      • Parenting, where child objects scale/move with their parents.
      • File importing/exporting/downloading and using them with set graphic.
      • Importing/exporting objects/behaviours from other projects. This would allow for sharing groups of behaviours and reusing them in other projects, as well as making it easier for people to collaborate on projects.

      Not sure how feasible these are, just thought I'd post them here.

      posted in Comments & Feedback suggestion
      Jack8680J
      Jack8680
    • RE: How to do logical AND in conditionals?

      @Deeeds

      (I'm going to use this to learn the code formatting on the forums)

      Like Aidan said, (P AND Q) can be represented by nesting ifs. It can be done as

      //# I'm not sure I fully get the syntax for comments
      output = 0 //# default to 0 if they aren't both true
      if P == 1:
          if Q == 1
              output = 1 //# set to 1 if they are both true
      return output
      

      P OR Q:

      output = 1 //# defaults to 1
      if P == 0
          if Q == 0
              output = 0 //# if NOT(P) AND NOT(Q) is true, return 0
      return output
      

      (P XOR Q) is the equivalent to ((P OR Q) AND NOT(P AND Q)), but there's an easy shortcut in that it's true when P โ‰  Q:

      output = 0
      if P != Q:
          output = 1
      return output
      

      Edit: oh yeah, NOT P:

      output = 1
      if P = 1
          output = 0
      return output
      

      Edit 2: As hyperPad behaviours:
      0_1509869001029_IMG_0361.PNG

      posted in Help and Support
      Jack8680J
      Jack8680

    Latest posts made by Jack8680

    • RE: Plugins in hyperPad! (UNOFFICIAL)

      @RobinsonX woah this sounds really cool!

      I know hyperPad normally doesn't let you have multiple behaviours with the same name, did you run into any issues with that?

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Important survey

      Personally,
      iPhone: Portrait
      iPad: Landscape

      posted in Help and Support
      Jack8680J
      Jack8680
    • RE: 1.26 Beta

      @Murtaza Render to texture sounds cool, would this be creating a single texture out of multiple game objects?

      posted in Announcements
      Jack8680J
      Jack8680
    • RE: Sports Challenge! Win an iPad Air!

      FDBE04F8-6BEA-4BC1-B058-E6C207F8E3EB.jpeg
      How long till it stops being the last day?

      posted in Announcements
      Jack8680J
      Jack8680
    • RE: If/Else If

      @Hamed to clarify, my idea was similar to the current if/else if system, but with a toggle to make the else if appear, and only one wire connecting both of them. Something like this: A82A57D7-CAA4-4D34-9DCE-13E00A7E420A.png

      posted in Comments & Feedback
      Jack8680J
      Jack8680
    • RE: Rocket Boat Racing

      @Jack8680 "test

      Edit: lol hyperPad forums use the backslashes to escape stuff... that code doesn't as work now lol. Guessing there are backslashes before the square brackets of inner arrays? lol when you realise you just typed something wrong and then the forums go down ๐Ÿ˜

      It's because your loading the inner arrays as text, so you have backslashes to escape the backslashes to escape the inner quotes.

      If you remove all quotes and backslashes it works too though. See edited level code post above.

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Rocket Boat Racing

      @Aidan_Fire well if you remove the quotation marks, the backslashes aren't escaping anything ๐Ÿ˜›

      The real question is how hyperPad handles nested json arrays like that, which I don't remember lol.

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Rocket Boat Racing

      Hmm I think you should be able to remove all the backslashes and quotation marks, since theyโ€™re just arrays and numbers, unless hyperPad is weird with them. Edit: yep

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Rocket Boat Racing

      [[[16,24,200,0],[15.9696,27.6527,200,10],[16.574,31.2552,400,20],[19.2577,38.6063,200,15],[20.2248,41.9524,200,0],[20.7385,44.6141,200,-42],[17.8613,44.7164,200,50],[18.8907,46.9652,200,112],[21.7306,46.1456,200,144],[23.7435,43.6693,200,168],[24.4314,40.1861,200,155],[25.5129,37.3129,200,127],[27.8167,35.2838,200,99],[30.8034,34.5737,200,71],[33.4874,34.9545,200,29],[36.1458,35.7691,200,-59],[31.4433,34.1298,200,97],[33.6767,35.9058,200,188],[33.1319,32.0487,200,185],[32.7541,28.6199,200,169],[33.1924,25.4589,200,145],[35.234,22.6783,200,161],[36.5863,20.3288,200,203],[36.4485,17.8216,200,258],[33.503,16.9562,200,286],[32.1219,19.3965,200,197],[30.1291,17.8334,200,123],[33.0409,16.0466,200,140],[35.1636,13.9897,200,172],[35.8738,11.1204,200,204],[34.9555,8.3108,200,236],[32.8276,6.4148,200,272],[29.9915,6.1316,200,308],[27.3902,7.9262,200,333],[25.7802,11.1669,200,322],[24.0168,13.7527,200,296],[21.2984,15.3038,600,270],[9.7142,15.26,200,282],[6.5042,15.7935,200,304],[3.9107,17.1536,200,337],[2.5055,19.9844,200,2],[4.5392,21.9149,200,-87],[2.5719,23.5702,200,-164],[1.6426,20.1435,200,-151],[-0.0336,17.0137,200,-138],[-2.371,14.3411,200,-125],[-4.8821,12.3718,200,-101],[-7.6778,11.4997,200,-68],[-8.7579,14.1684,200,-160],[-11.1602,12.9063,200,-245],[-7.9753,11.4964,200,-230],[-5.3398,9.4272,200,-211],[-3.5216,6.6128,200,-192],[-2.7188,3.3598,200,-173],[-2.8793,0.2642,200,-146],[-3.8396,-2.207,200,-101],[-6.603,-3.0925,200,-67],[-7.8075,-0.7484,200,-148],[-10.5048,-1.4227,200,-236],[-7.7086,-3.1486,200,-215],[-5.7166,-5.7619,200,-194],[-4.7934,-8.9155,200,-173],[-5.0617,-12.1904,200,-152],[-6.0189,-14.8485,200,-115],[-8.6768,-13.8812,200,-205],[-9.5157,-16.4845,400,-291],[-2.3901,-13.7886,200,-302],[0.6979,-11.9023,200,-313],[3.1202,-9.9203,200,-339],[4.489,-7.4203,200,-15],[2.1399,-5.9764,200,72],[3.4467,-3.5223,200,160],[4.3247,-6.5264,200,134],[6.4308,-8.8416,200,108],[9.3386,-9.9992,200,82],[12.8123,-9.451,200,96],[15.8523,-9.5184,200,125],[18.3535,-10.7257,200,164],[16.9155,-13.2199,200,72],[19.4584,-14.57,400,-20],[16.8311,-7.5199,389.1129,353.7826]],[[19.4003,46.1004,-42],[34.457,36.7038,29],[31.5805,17.5075,286],[26.4822,9.7082,333],[2.5753,21.9832,2],[-9.5322,12.2489,-68],[-8.444,-2.3111,-67],[-7.8315,-15.6938,-115],[3.9713,-5.4885,-15],[18.9048,-12.6482,164]]]

      posted in WIP and Showcase
      Jack8680J
      Jack8680
    • RE: Creating download link of a project always fails the first time

      Worked for me first try (unless it's been fixed since you made that post)

      posted in Bug Reports
      Jack8680J
      Jack8680