1st Post - New to GS - Need help with scrolling background

Hello All,

New to GS and working through the templates and tutorials.

Working on the PC version 10.0

I have a Shooter project I started.
Iphone Landscape
I want a scrolling background of mountains
to do this i created 2 actors and gave them images I made in PS

Sky 470px X 320 px
Mountains 1440px X 320px

I gave the Mountains Actor a MOVE rule (Direction 180 Speed 30)

I set the scene to Wrap X

This worked great till I added a Spawner Actor to generate Enemy Actors, then I realized that they also would wrap if not destroyed before they went out of the view screen

If I turn off the Wrap X for the scene then the mountains eventual run out instead of wrapping

Can someone tell me how to either
1. Destroy the Enemy Actors once they have left the screen
2. make the Mountains Actor Wrap X not using the Wrap X setting for the Scene

Thanks

Josh

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Scrolling background? It will be better if you have background static, and move your hero, and other actors.
  • JAMillsJAMills Member Posts: 2
    Thank you @TheMoonwalls

    I just figured out how to destroy using a Timer rule

    I will look into the Static Background idea as I progress. I am just playing with templates and small projects to get familiar with GS.
  • JAMillsJAMills Member Posts: 2
    Okay So I just discovered that the Timer Destroy Actor rule creates another issue. Now the Score is the issue. Score goes up once the Enemy Actor is destroyed by the rule not just when the player destroys the Enemy Actor....

    GS App design is going to be a fun to learn....
Sign In or Register to comment.