hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login
    1. Home
    2. Help and Support
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • D

      Store and Modify a Colour with Code: Possible? How?

      • • Deeeds
      31
      0
      Votes
      31
      Posts
      1.3k
      Views

      GameCRAZYG

      @Jack8680 Exactly!

    • MurtazaM

      Tips & Tricks

      • • Murtaza
      11
      4
      Votes
      11
      Posts
      1.5k
      Views

      D

      Performance Tips:

      Put everything you don't need interacting with your main characters on different layers. Just do it. The performance gains are real.

      Make sure no images are stretched beyond 2048 pixels in any one dimension.

      Crop your images as tightly as possible in image editor to get rid of as much extraneous Alpha pixels as possible

      Use partial opacity sparingly, particularly on big images

      Try to make everything you can think of a spawned item. When in doubt, spawn and destroy the original

      Recycle particle systems by moving them to where you need them and restarting them instead of creating new ones

      Edit sounds in audio editor so there's absolutely no clipping. OpenAL/cocos2D tries to reduce clipping and does so in a very costly manner

      Don't be tempted to use the pitch change. It seems to be a live change and exasperates the clipping performance issue above. Record uniquely pitched sounds instead, and pick and play the ones you need

      Preplay your sounds, with silent volume if need be, so they're cached before they need to be played. I don't know why this works, but it seems to make a big difference. I thought we were beyond the time in history when we needed to do things like this for audio on iOS.

      Use Exponential eases on Colour changes with caution. They're costly. If at all possible, use Linear "eases". For colour changes, they're noticeably cheaper than others.

      Push everything you need to store into central arrays. Use them as global storage. Faster and lighter and more reliable than Value and Box Containers.

      Make everything you can into a Background image (not physics and not static/walls). Way less physics checking. If you can do this with things and not need to worry about them again, then you know these things are also suited to being put on another layer. So do that and forget about them.

      Use broadcast and receive for every single thing you can think of. All the time. This way you can centralise everything and find anything and everything you need in little managers. Animation manager, Sprite Manager, Sound Manager, Creation Manager, etc.

      Don't update labels frequently. They are unbelievably slow at any size that looks good.

    • D

      HOW TO: Weld a tag group's members to a hub in gravity?

      • • Deeeds
      23
      0
      Votes
      23
      Posts
      798
      Views

      D

      @Aidan-Oxley btw, this is kind of normal for my experiences with hyperPad. I try something, and find something buggy, and then do a couple of restarts, and then move around it.

      Today's biggest accomplishment is that I figured out I can do this kind of rotation of a tag, so long as I don't do loops with Ease Out Exponential set as the curve type.

    • D

      Two Receivers, inside one object, only one works?

      • • Deeeds
      9
      0
      Votes
      9
      Posts
      330
      Views

      D

      @Hamed no, no space. I duplicated the receiver to ensure it was exactly the same.

    • D

      How to move Anchor Point with code?

      • • Deeeds
      20
      0
      Votes
      20
      Posts
      601
      Views

      Aidan_FireA

      @Deeeds Yes, I’m stupid. Didn’t look at what I was doing. Erm, maybe this doesn’t work for rotations, but it does for Move to Object, or Rotate to Object.

    • D

      How to Set Pin Joint Motor Speed in Code?

      • • Deeeds
      8
      0
      Votes
      8
      Posts
      194
      Views

      Aidan_FireA

      @iTap-Development I always use set input field for things like this, rather than having a box container value inside the input field. Seems to be more reliable.

    • D

      HOW TO: Ensure the sanctity of Actions?

      • • Deeeds
      4
      0
      Votes
      4
      Posts
      133
      Views

      iTap DevelopmentI

      @Deeeds yeah it was just off the top of my head...there is probably a better way, but i don’t have anything in mind right now🤷‍♂️

    • D

      Collided Impulse?

      • • Deeeds
      8
      0
      Votes
      8
      Posts
      195
      Views

      D

      @Hamed In some cases, very rarely, I've seen massive numbers being reported. By massive, I mean those kinds that have "E" in them. Billions, or bigger.

      Further, I've tried checking both sides of a collision. Both doing the same, reporting zeros, 99% of the time. Sometimes the enormous numbers.

    • T

      I can’t quite get this simple code snippet to work...

      • • Thecheater887
      1
      1
      Votes
      1
      Posts
      76
      Views

      No one has replied

    • D

      Sound Pitch Changes = Semitones/Tones ?

      • • Deeeds
      1
      0
      Votes
      1
      Posts
      49
      Views

      No one has replied

    • GameCRAZYG

      Array For Level Attempts

      • • GameCRAZY
      12
      0
      Votes
      12
      Posts
      410
      Views

      GameCRAZYG

      @Aidan-Oxley Yup, got it working.

    • iTap DevelopmentI

      Does save to file overwrite?

      • • iTap Development
      4
      0
      Votes
      4
      Posts
      148
      Views

      iTap DevelopmentI

      @Deeeds ok👍

    • D

      When does a Set Input Behaviour Change a Box Container's Value?

      • • Deeeds
      13
      0
      Votes
      13
      Posts
      452
      Views

      KamdroidK

      @Thecheater887 https://hyperpad.zendesk.com/hc/en-us

    • D

      How to import SpriteSheets and their plist?

      • • Deeeds
      26
      0
      Votes
      26
      Posts
      1.2k
      Views

      D

      @Hamed In the most basic version, just force users (me) to use square images, in square values (64x64, 128x128, 256x256, 512x512 etc) as this is a pretty common limitation. Most designers and artists for games are used to this limitation.

    • iTap DevelopmentI

      Dictionary updated?

      • • iTap Development
      8
      0
      Votes
      8
      Posts
      316
      Views

      iTap DevelopmentI

      @Hamed 👍 thanks!

    • iTap DevelopmentI

      Is a dictionary or an array faster?

      • • iTap Development
      3
      0
      Votes
      3
      Posts
      134
      Views

      iTap DevelopmentI

      @Deeeds thanks!

    • D

      Behaviour On: What does "Skip Events" mean?

      • • Deeeds
      2
      0
      Votes
      2
      Posts
      73
      Views

      iTap DevelopmentI

      @Deeeds if you turn a behavior on that has behaviors connected above it, it won’t trigger immediately. But if you turn on skip events, it will.

    • KamdroidK

      Forum formatting guide?

      • • Kamdroid
      2
      0
      Votes
      2
      Posts
      64
      Views

      MurtazaM

      In the reply box there is a small text in the top right corner that says "Compose ?" click the ?. It will bring up a popup with formatting link.

      Or just go here:
      http://commonmark.org/help/

    • D

      Reinstate Collision Detection after Ignore Collisions Behaviour.

      • • Deeeds
      2
      0
      Votes
      2
      Posts
      76
      Views

      iTap DevelopmentI

      @Deeeds just turn the ignore collisions off.

    • D

      Does Behaviour Off not work instantly with duration Behaviours?

      • • Deeeds
      28
      0
      Votes
      28
      Posts
      1.1k
      Views

      D

      @Thecheater887 Have we met? You sure sound like a pot calling a kettle black.