Moving illusion

JayJayDJayJayD Member Posts: 48
edited October 2012 in Working with GS (Mac)
Hello,
I haven´t much experience with Gamesalad. I´m working on an endless game like Jetpack Joyride, but from top to down.
The difficulty will increase over time by spawning more enemies and getting faster over time.
But because my scrolling background isn´t that fast i wanted to use a very slow speed (about 10).
But how can i increase the speed of my main actor? The main actor should only move at the x-axis and not at the y-axis. There should spawn enemies outside the screen, some of them don't move and some will move. They have to be faster too.
I really don´t know how to set the speed higher while background is still at the same speed...
Hope you can help :)

Thanks

Comments

  • famekraftsfamekrafts Member, BASIC Posts: 834
    edited October 2012
    Gs has a big scrolling problem, it's very basic requirement yet for some reason we are facing a lot of problem. Search the forums for looping backgrounds you will find many threads where me and many other are having problems with it. Some are spawning and destroying, some using interpolate. Chek and see which one you want to use before you go ahead. Each has pro and cons. The speed can be increased either with timer or attribute. Say if you reached 500 m then make the speed to 50 from 10. Check the shooter template in gs mac, you will understand.

    You will have to increase speed of all actor and background simultaneously, otherwise it will look very odd.
  • LooseMooseLooseMoose Member Posts: 224
    edited October 2012
    Im one of my scroller games I used the following rule to increase the enemy speed over time:

    I changed enemy attribute velocity to 300 + game.score/10

    My game was scored in meters traveled, so every 100 meters the enemies speed would increase by 10. So they enemies speed gradually increase as you progress

    Just realised your hero will move on x-axis but not y-axis.
    In my sidescrolled the actor could only change y-axis and everything moved towards him and got faster over time
  • JayJayDJayJayD Member Posts: 48
    Hello,
    But because my scrolling background isn´t that fast i wanted to use a very slow speed (about 10).
    sorry i meant that it isn´t so long instead of fast...

    @wickedsunny
    did you mean with simultaneously that i have to use the exact same speed for actors and background or that i have to increase the speed of the background relative to the actors (example: actor gets 50 faster and background 10)? When i use the same speed the background will repeat way too fast.

    whats about the camera function? can i use an very small scrolling area to give the illusion that it is only moving at the x-axis? Or is it possible to use the camera only for one specific layer, so that only the enemies scroll faster but the background is still at the same (or a bit increasing faster) speed?

    hope you understand my school english ^^
    i think the moving is the biggest problem in my game...
  • JayJayDJayJayD Member Posts: 48
    I guess that have a different solution, I have saved the clouds of my background in an different file so that i get two backgrounds. The Basic background won't change its speed, so that it doesn't repeat to fast. But the clouds will getting faster and faster relative to progress. I hope that this will give the illusion of getting faster.

    Do you think this is a good solution and will work or look odd too?
  • famekraftsfamekrafts Member, BASIC Posts: 834
    Give it a try and check. The problem is what will look good on your comp. might not look good on device so keep testing.
Sign In or Register to comment.