Question on spawning
PaxPax
Member Posts: 106
OK, I am reposting this as somehow, yes probably me, my original question shows answered. Unfortunately I still cannnot get my issue to work. There were two suggestions, delete actor and try again---bug problem or use position. I tried a few positions on Santa to no avail.
Hope someone can help. Sorry about the double post with the 'answered' thing. How do you tag your question as 'answered'?
I want one actor to 'spawn' another actor once the game is 'on'. Below are my rules/behaviours.(BTW is there I a way for me to paste the code? is that advisable?)
My problem is that the presents are falling from the top of the scene, not in front of actor. Looked at a few youtube videos and still cannot make it work.
Santa is in the sky and spawns presents while he moves across scene.
Code:
Present - move to self position x to self positing y-400...dropping presents
Santa
- move to self position x-400 to self position y ...flying across the scene
-spawn actor(present) ---front of actor, relative to actor and no positions or direction set
Thanks in advance for any assistance.
Hope someone can help. Sorry about the double post with the 'answered' thing. How do you tag your question as 'answered'?
I want one actor to 'spawn' another actor once the game is 'on'. Below are my rules/behaviours.(BTW is there I a way for me to paste the code? is that advisable?)
My problem is that the presents are falling from the top of the scene, not in front of actor. Looked at a few youtube videos and still cannot make it work.
Santa is in the sky and spawns presents while he moves across scene.
Code:
Present - move to self position x to self positing y-400...dropping presents
Santa
- move to self position x-400 to self position y ...flying across the scene
-spawn actor(present) ---front of actor, relative to actor and no positions or direction set
Thanks in advance for any assistance.
Best Answer
-
mrpacogp Posts: 400I think gs have a high problem with the layers of their actors.
I have similiar problems too, behaviors that dont work if one actor is under the main layer, and similar...
I think you have tested too front of layer values.
Change the position of the main actor on the layer.
And i dont know what can i say more... i have similar problems, and solved many times using tables.
I have tested now in my game moving actors to differents position under same layer and the behaviors stop to work...
I hate that.
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User