GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

stretch an actor?

I'm new to GS and was wondering if it's possible to stretch an actor while holding finger down and dragging it across the screen?

I didn't see any examples in the templates provided on Mac version of GS.

Comments

  • SocksSocks London, UK.Posts: 12,822Member

    To stretch something - other wise translate it - you just need to consider the starting point and the end point - and define a relationship between the two, with a stretch the object will be having its size and position changed . . . .

    Hold on I'll make you a quick demo . . .

  • SocksSocks London, UK.Posts: 12,822Member

    Here you go, pull the red box down . . . .

    I stuck some audio on too, ignore it, it was just an experiment.

    Link: https://www.mediafire.com/?ivb2euhkzkisdbk

  • glyst81glyst81 Posts: 6Member

    Thanks. I didn't get a chance to test this out with a touch event. I tried changing the template to use mouse (hold down click and drag it), but doesn't appear to work.

  • SocksSocks London, UK.Posts: 12,822Member
    edited May 2014

    @glyst81 said:
    Thanks. I didn't get a chance to test this out with a touch event.

    I don't know what that means ?

    @glyst81 said:
    I tried changing the template to use mouse (hold down click and drag it), but doesn't appear to work.

    You don't really have to change anything, did you try to simply click on the red rectangle and drag it downwards . . . . ?

    Let me make you an instructional video (!!) . . . :D

  • SocksSocks London, UK.Posts: 12,822Member

    Here you go . . . .

  • glyst81glyst81 Posts: 6Member

    Appreciate it. Ah...the whole time I was dragging right and left and didn't see anything.

    How would you go about stretching left, right, up or down? Do I add a new rule showing mouse position is greater(or less) than the actor position?

  • SocksSocks London, UK.Posts: 12,822Member
    edited May 2014

    @glyst81 said:
    Appreciate it. Ah...the whole time I was dragging right and left and didn't see anything.

    Damn! Not a lot more you can do than make someone a very very simple demo, a single actor in an empty scene - and clearly state 'pull the red box down'.

    Lol :smile:

  • glyst81glyst81 Posts: 6Member

    I know I feel like an idiot LOL

    Is it possible for you to show me a demo or upload the GS template that demonstrate the stretch feature depending if user drag right, left, up or down? I tried messing with it for a few minutes and couldn't get it to work.

  • SocksSocks London, UK.Posts: 12,822Member

    @glyst81 said:
    I tried messing with it for a few minutes and couldn't get it to work.

    What did you try ?

  • glyst81glyst81 Posts: 6Member

    Here's the template I modified.

    mediafire.com/download/vn8gj79ad5oawmp/stretch.zip

Sign In or Register to comment.