Moving Background

Hi,
I'm making a simple game with no cartoon actors-- just a background. I want an endless background and it should move only when I swipe downwards (in the y direction). Later I want to calculate the distance.

Can anyone help. I have my menu for the app and everything setup. It's just the gameplay that's left. Can anyone help me or at least give me the direction or links I should go through to help me. I'd really appreciate it.

Comments

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Did you try wrapping the screen?

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685

    Following up on what Rabid has suggested, here is a quick example of what wrapping the Y would look like.

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @Rabid Parrot said:
    Did you try wrapping the screen?

    I don't have the Wrap options

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @gingagaming said:
    Following up on what Rabid has suggested, here is a quick example of what wrapping the Y would look like.

    That's exactly what I want on the iPhone. But I have two actors. One for when the game starts and one that runs infinitely. What I want is that after I swipe downwards and the first actor finishes the second actor keeps running infinitely as i swipe it downwards. Basically a drag like this
    http://www.deepblueapps.com/drag-around/

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @yna205@nyu.edu said:
    I don't have the Wrap options

    I found the options. What should I do. I want to swipe downwards so the first actor background goes down and instantly followed by an infinite background that I too have to keep swipping

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685

    @yna205@nyu.edu said:
    I found the options. What should I do. I want to swipe downwards so the first actor background goes down and instantly followed by an infinite background that I too have to keep swipping

    Select the Wrap Y now you've found the attribute. Then simply look at the demo I put together and learn and copy the rules ive put in them. I never made you a template to tell you how to do it straight after! The idea of me making you a template is so you can learn from it and understand the process!

    The best thing to do is make a new project and try to simulate what I have built for you in a blank project. When you have got it working the same, then try and implement those rules in your game to work in a way you want them to.

    Im sure my rules are not exactly what you want so you may have to adapt them to fit what you want. This is the learning part.

    Best of luck.

    Damien

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @gingagaming said:
    Damien

    Perfect: I've got it to move when I swipe downwards, I used a different method of setting up new attributes, now when I press and release it goes down. Update on the post, I hope you're able to help on this one: http://forums.gamesalad.com/discussion/73450/drag-according-to-speed-of-swipe#latest

Sign In or Register to comment.