Touch response

madpoetmadpoet Member Posts: 59
edited November -1 in Working with GS (Mac)
Touch registering on many small actors (42 pix square) seems to not work
very well at times on 2nd/3rdgen ipod. Is lag causing this?
Usually happens when 7 or more actors are flying around, all moving
and reacting to physics. Static 480x320 background.

The actors are like random bubbles that are spawned and destroyed and I'm using the
touched event within each actor. Is there a way to optimize the touch rule in some way?
Glad to hear any suggestions.....Cheers!!

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    make a larger actor, and smaller image, so it has a larger touch area.
  • StusAppsStusApps Member, PRO Posts: 1,352
    or make a larger invisible actor thats position is constrained to the bubble, however with a lot of actors this will cause a lot of extra cpu load.
  • madpoetmadpoet Member Posts: 59
    make a larger actor, and smaller image, so it has a larger touch area.

    Does this mean:
    make the actor bigger even though image is 42 pixels square
    or
    make image bigger in photoshop and remake the actor to the new size.
    Thx 4 the feedback...Much appreciated!
  • quantumsheepquantumsheep Member Posts: 8,188
    What he means, is, I think:

    If your button is 32x32

    Make its image 64x64, but have the button in the middles still 32x32 in size.

    So essentially, there's a lot of empty space around the button.

    Then make your actor 64x64 - the image will show as a small button, but the actor will be bigger so easier to hit.

    Hope that makes sense,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • madpoetmadpoet Member Posts: 59
    Ok, thx
    p
  • HachikoHachiko Member Posts: 330
    or just have a little image, in a big actor, with graphics parameters set to fixed.
  • ChunkypixelsChunkypixels Member Posts: 1,114
    I remember Apple published user interface guidelines some time back that recommended that touch buttons should ideally be no smaller than 40x40 pixels, and preferably 48x48 or larger for best results with touch presses.

    Smaller than 40x40 and a lot of adult fingers have trouble selecting the buttons accurately.

    So if your 42x42 actors are already close to the minimum recommended size, theyre going to be at risk of issues, and if theyre moving around, its going to make them even more problematic.

    So yup...make their touch area larger.
Sign In or Register to comment.