Collision with particles

I have a particle actor named "Hammer" and it moves around dropping little hammers. The other actor in the scene is "OldMan". I am trying to get the oldman to destroy when a particle hits him. But it doesn't work I've tried a dozen things. Can you help me? I am a newbie to Gamesalad. Thanks

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Particles cannot have rules and other actors cannot detect a collision with a particle.

    You'll have to spawn the hammer actors instead of using a particles behavior.

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

  • fayt84fayt84 Member Posts: 4
    I found the spawn actor behavior, but which rule, block or behavior do I use to #1 get it to drop randomly, #2 collide with actor? Thank you again
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    In the Spawn actor behavior you can enter random values for the x and y positions. Then in the hammer actor itself, make it move down or any direction you prefer.

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

  • fayt84fayt84 Member Posts: 4
    Tried that and it displays giant images and doesn't move, the original smaller actor moves but that's it. Here is the screen shots: http://postimg.org/image/448rybtp9/ ..... http://postimg.org/image/hwn6tykgt/
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The actor will spawn at whatever size the prototype is set to in the actors' inspector pane. Try changing the width and height there.

    The Hammer actor needs a rule to move down, not the spawner actor. Also, it looks like you're spawning at x=1, y=100 instead of a random location.

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

  • fayt84fayt84 Member Posts: 4
    All it does is sit in one place and doesn't move, but I guess it spawns at the right size, but it doesn't do anything. Also there are no options for "Random". Sorry to be a pain. http://postimg.org/image/vtqdu2dj3/
  • fayt84fayt84 Member Posts: 4
    Okay I have figured some of it out, however spawn actor doesn't work and also move down (270 degrees) can't drop in random spots. I think we're almost there, anymore help? Thanks
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    "Watch out for the hammers, old man!"

    In the From position boxes, you have 0 and 0, relative to actor. You need to click on the expression editor 'e' and enter a random expression such as (0,1024) and set it relative to scene.

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

Sign In or Register to comment.