Touch question

ZackGSZackGS Member Posts: 313
edited November -1 in Working with GS (Mac)
I have an actor spawn when i touch the background image. It works fine.

Providing the background is 480x320 that is. I made my background 960x320 and changed the scene size to match (as i want it to scroll). It scrolls fine but once i pass the 480 mark, my touch is no longer responsive and is like tied to 0 > 480 ....... The actors spawn when it is past 480 still, however not relative to my touch position, they spawn from 480 (ie edge of screen) forward, not where i am clicking... This behavior only happens when i pass the 480px mark...

Any ideas?

Comments

  • ZackGSZackGS Member Posts: 313
    It seems even doing this but keeping the background 480x320 and setting everything else but the background to scrollable, fixes the spawn issue, then however they don't collide with anything once you have gone past 480px...

    Any ideas for a workaround?
  • MotherHooseMotherHoose Member Posts: 2,456
    think maybe creating an Actor 960x320 with alpha 0 a placing on screen in a layer over your bg....
    and coding your spawn with position > game.Touches.Touch1.X [e]
    and position ^ game.Touches.Touch1.Y [e] might help.
    Relative to scene.

    of course anything else with Touch; use touch inside for those actors.

    MH
  • ZackGSZackGS Member Posts: 313
    MotherHoose said:
    think maybe creating an Actor 960x320 with alpha 0 a placing on screen in a layer over your bg....
    and coding your spawn with position > game.Touches.Touch1.X [e]
    and position ^ game.Touches.Touch1.Y [e] might help.
    Relative to scene.

    of course anything else with Touch; use touch inside for those actors.

    MH

    Thanks tried that and failed :/ Same issue
  • ZackGSZackGS Member Posts: 313
    bump..
  • ZackGSZackGS Member Posts: 313
    Sorry for double/Treble posting.

    Issue is resolved now, I decided against scrolling and have redesigned the game to suit.

    Thanks :)
Sign In or Register to comment.