Delayed scene entering and dropping a load

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
Hey all,

I need and actor to enter the field of combat, drop a mine, and leave of the field. His entering needs to have a delay and not at the beginning of the level.

- For moving back and forth I tried the "pace back and forth" tut in the support page. My actor just moves but does not return. My set up,as per the tut:
*change velocity
*Timer= 1.4 sec
**change attbt= self.motion.linear (X,-X)
**same for (Y,-Y)
Am I missing something?

- For delayed entry I tried adding in a Timer thinking it would set entering in time. No luck.
- Ideally when the actor reaches the end of the movement he drops (spawn) a mine. I don't know how to do this.

Can any of you gurus help me out?? Thanks!

Comments

  • DookiDooki Member Posts: 247
    ...Would it be smart to have the actor move to a location and have a hidden trigger actor that when collided would spawn the mine? I would like the actor to pause as he spawns the mine before he heads back off the screen, and I don't know how to do the pause.

    Thanks!
  • quantumsheepquantumsheep Member Posts: 8,188
    Interpolate!

    And a variable called 'WaitForIt'

    Have a control actor that says:
    Timer: - After 3 seconds
    Change Attribute WaitForIt to 'true'.

    Place your actor just offscreen to the left.

    Then on your main actor:

    If 'WaitForIt' is true

    Interpolate position X to 240
    in 5 seconds

    After 5 seconds drop mine

    After 6 seconds interpolate self.position X to -30 (to take him offscreen)
    in 5 seconds

    That should do it.

    Hope that helps,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • quantumsheepquantumsheep Member Posts: 8,188
    Just read your second post - if you want him to pause, just change the 'after 6 seconds' in the last timer to however many seconds you want him to pause +5.

    You can change all the timer stuff to suit your needs actually...

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Did Dooki really just start a thread about dropping a load? Classic!
  • quantumsheepquantumsheep Member Posts: 8,188
    I'm losing it! How did I miss that???

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • DookiDooki Member Posts: 247
    Yes, I am dropping a load! Glad you got a chuckle out of that. I was wondering how long it would take, if at all! ;-)
    -----------------------------------------------
    Quantumsheep:
    Thanks for your help. Let me see if I got this correct.

    Controller actor=
    Timer: 3 sec
    -Change attribute: Waitforit To: True (Is Waitforit an "integer" attribute?)

    Moving actor=
    Rule
    -Attribute: game.Waitforit = 1 (Not sure what you mean by "if Waitforit is true?")
    --Interpolate: self.position.x To 240 @5sec Linear
    Timer 6sec
    --Interpolate: self.position.x To -30 @5sec Linear

    OK, so with this set up effort as soon as I click my moving actor crosses the scene but does NOT stop/pause.

    Thanks.
  • DookiDooki Member Posts: 247
    Hey, I also tried this and it's pretty close to what I'm looking for. What do you think?

    Controller Actor= same as before

    Moving actor=
    Rule
    -Attribute= game.Waitforit= 1 (BTW if I enter "true" the scene does not work. "1" works.)
    --Move To 50,420 to: scene/speed 100

    Timer= After10 sec
    -Spawn mine actor

    Timer= After 11 sec
    -Move To-50,-240/speed 100

    OK, so the moving actor starts off scene on the right. It moves across the scene and pauses, drops mine actor, then moves off scene, BUT down and continues to the left. I was hoping a Move To of -50,-240 would make the actor go back the same way it came in.
Sign In or Register to comment.