continuous background with trigger spots?

AlanoAlano Member, PRO Posts: 70

Hey there,

So in my game I have a trigger/target actors on the left and right. It's a vertical game and these targets scroll down from the top. Imagine my graphic is a field with archery targets flanking left and right. I know I can "wrap" my background graphic so that it's infinite but how can I do this my trigger/target actors? Set a spawn actor for these and tweak the timing so that it lines up with my background graphic?

Thanks for the help!
Alan

Comments

  • ArmellineArmelline Member, PRO Posts: 5,458

    If it was me making it, I would do exactly what you say - spawn the targets and move them down the screen in sync with the background.

  • AlanoAlano Member, PRO Posts: 70

    Thanks Armelline. I'm trying to make it work right now.

    -Alan

  • AlanoAlano Member, PRO Posts: 70

    Okay, so I got the background to scroll down but it's not quite working out.

    • So I got the background to scroll.
    • I have set up a spawner to spawn a target/trigger actor at X seconds. It still doesn't quite line up with archery targets image I have on the background graphic. It's out of sync timing wise.
      Any help would be appreciated. Is there another way to skin this cat?

    Thanks again!
    Alan

  • AlanoAlano Member, PRO Posts: 70

    Hmmm, anyone have a better way of doing this? I need my target actors to be in sync (timing wise) with my scrolling background. Right now I'm spawning my target actors and playing with the speed of their movement to try and have it match up with my scrolling background. Any help would be appreciated!

    Thanks,
    Alan

  • AlanoAlano Member, PRO Posts: 70

    Hey thanks Uptomisik,

    So are you saying create an attribute under the "Game" tab. I assume this will be a REAL attribute? Not sure where I enter in the value for seconds. Am I creating a RULE somewhere? Thanks for your help!

    -Alan

  • AlanoAlano Member, PRO Posts: 70

    ...Ah, I think I get it. Under that new attribute I set a number like 50 and will affect both actors at that speed.
    If so, does mean it overrides my MOVE speed I made for an actor? For example both my background actor and my "target" actor have a MOVE attribute in it. I have the speed set to 100. Does the new ScrollSpawnSpeed attribute override these move speeds?

    Thanks!
    Alan

  • AlanoAlano Member, PRO Posts: 70

    Okay, Iv'e been playing with adding an attribute to the game and another to the spawn actor. They move at the same speed but it's the speed of the MOVE behavior within the actors and not from the attributes. I change the speed in the attribute but it doesn't affect the actors.

    Advice anyone?

    Thanks!
    Alan

Sign In or Register to comment.