Zero999's Forum Posts

  • looks like simple drag and drop behaviour with offset.

    either create a sprite on touch with drag and drop and pin it to the ship position sprite, or create offsetx and offsety variables and position the ship acording to touch.x-offsetx and touch.y-offsety.

    I'm sucessfully pinning objects now, but once an object gets pinned, it looses it's "bound to layout" property. is there a way to fix it?

  • move with touch example

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.05_22h08m05s_002.png" border="0">

    looks simple enough, I'll try it.

  • I was actually thinking of using pin-behaviour for it..

    You could also do the offset way, it's just preference..

    I didn't know about the pin behaviour existence :p

  • if you create a sprite at touch.x,touch.y with drag and drop behaviour, pin the ship to it and on touch end destroy the sprite.. should work..

    I think I understand it now, thanks a lot. this pinning thing, is it an event action like this: ship -> position -> set position acording to this touch.x, touch.y object?

  • looks like simple drag and drop behaviour with offset.

    either create a sprite on touch with drag and drop and pin it to the ship position sprite, or create offsetx and offsety variables and position the ship acording to touch.x-offsetx and touch.y-offsety.

    would drag and drop really work? doesn't drag and drop involve directly touching the sprite? I need to move it regardless of the touch point.

    about these offsets variables, should they be global variables?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • this video ilustrates better what I want. anyone know how I cana chieve this in construct2?

    youtube.com/watch

  • I am making a shoot them up and need to move the ship like the dodonpachi ressurection and other shmup games.

    basically, you're supposed to touch anywhere on screen and then move your finger while still touching. the sprite needs to imedeately move the same amount of pixels as the finger.

    I really need this help,tx.