Mouse Press Vs Touch?

HappyKat78HappyKat78 Member, BASIC Posts: 173
edited February 2012 in Working with GS (Mac)
Hi everyone!

Noob here! I have a template for a line drawing game (ORBZAMPLE Drawer) but I noticed it uses mouse press in the rules and behaviors, even though the platform is iphone. What I wanted to know was whether I'd need to change the code from 'mouse button is down' to 'touch is pressed' etc. for it to work when on an iphone device? It works fine now on my mac but I'm wondering if it automatically translates mouse position to be the users finger or not?

If I need to change the code, has anybody done this? I tried changing from mouse button to touch as described above in every instance where mouse button or mouse position is mentioned but when I change the code to be 'touch' it no longer draws the line.

Many thanks in advance!

Comments

  • 921creative921creative Member, PRO Posts: 140
    Mouse button is down works just fine on the iPhone. It's essentially the same thing as a touch is pressed.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    mouse button is down works just fine on the device.

    @921creative

    there not really the same thing.

    When touch is pressed will only happen when the touch is pressed on the actor that has that rule

    mouse button is down will happen whenever you press anything

    cheers
  • HappyKat78HappyKat78 Member, BASIC Posts: 173
    Ah, that's fantastic. Many thanks for the fast response!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I think it's worth adding to John's comment: when touch is pressed is activated on an actor it'll also activate any other actor overlaying it with a touch is pressed rule... there are workarounds to prevent this happening.

    Also bear in mind that although when mouse is down works fine for iDevices as well as desktop, using when touch is pressed won't work on the desktop app version... I'm pretty much certain .... with means that if you've used when touch is pressed in an iDevice and you then want the app on the Mac, you have to change all of them to when mouse is down... like I'll have to.... (drat)

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Touch is pressed works ust fine on Desktop. it just means mouse is down on the actor.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Excellent to hear, thanks Aaron, that bit of info is going to save me a lot of work... :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.