Delayed scene entering and dropping a load
Dooki
Member Posts: 247
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!
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
Thanks!
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
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
You can change all the timer stuff to suit your needs actually...
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
-----------------------------------------------
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.
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.