GameSalad

Howdy, Stranger!

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

Infinite background WITH ACCELERATION

Hello I have a space game that has an infinite scrolling background moving from right to left (giving the feeling that the ship is traveling through space). BUT what i want it to do is to accelerate to go faster and faster to make the ship look like its going faster. I'm using the spawn and destroy method of creating this "infinite background" illusion. But when I use the accelerate method it spawns the actor and makes it accelerate but when a new one spawns its speed starts from 0 how do i make the spawning actor equal the actor that was destroyed?

Comments

  • tatiangtatiang Posts: 11,734Member, Sous Chef, PRO, Senior Sous-Chef
    Just use a game attribute for the acceleration speed and include a change velocity behavior at the top of the background actor's rules to change it to that attribute. That way when the actor spawns it is already using the current value for the speed.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • peterraadpeterraad Posts: 56Member
    I'm a little confused...can you explain it more clearly, I'm still new to this software and I've only been using it for 3 days
Sign In or Register to comment.