Question on spawning

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.

Best Answer

  • mrpacogpmrpacogp Posts: 400
    edited December 2012 Accepted Answer
    I 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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yes, posting a screenshot of your rules is always helpful. You can upload the image to a file sharing service and then post the link here using < img src="http://imagesource"> (be sure to remove the space after the first bracket and replace imagesource with the URL to the file).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.