How to make googley eyes?

I'm trying to make a bouncing frog have googley eyes, and I can't figure out how. I have invisible walls, floor, and roof, and transparent frog eyes. I made two small black dot actors, and made them collide with the frog. The pupils won't stay inside of the transparent area, they seem to spawn outside of the frog. Suggestions?

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    You can do whatever you like. :) So yes, you could constrain eye actors to the frog with an offset value for where they need to appear (within the sockets). As far as the movement, I'm not sure... I played around with it a bit but couldn't get anything to work very well.

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

Answers

  • FalafawlFalafawl Member Posts: 4
    Pathetic question ^^^ I'm a beginner
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Are you saying that the googley eyes can be anywhere within the frog's body? Are the walls/floor/roof part of the frog (pathetic question but I'm trying to understand)?

    Can you post a screenshot of what you have so far or maybe a sketch of what you want it to look like?

    Without that, I'd need to know the shape (e.g. circle) of the area you're trying to constrain the eye actors within.

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

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2013
    Are you saying that the googley eyes can be anywhere within the frog's body? Are the walls/floor/roof part of the frog (pathetic question but I'm trying to understand)?

    Can you post a screenshot of what you have so far or maybe a sketch of what you want it to look like?

    Without that, I'd need to know the shape (e.g. circle) of the area you're trying to constrain the eye actors within.
    @tatiang

    I think it works like this: he wants the small black plastic pupils to rattle around inside the two eye actors, so he has positioned these eyes within the frog's head, then positioned the pupils within the area of the eyes and then set the pupils to collide with the frog - the idea being that as the pupils approach the edges of the eyes they will encounter the frog actor and having been set on collide will be prevented from leaving the area of the eye. But when he hits play the pupils 'spawn' outside of the frog.

    Of course this set up won't work for all the obvious reasons, and when he says the pupils 'spawn' outside of the frog he simply means when he hits pay the pupils appear outside of the frog - there is no actual spawn behaviour going on here it's just the collide behaviour pushing the pupils away from the frog actor.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I sort of thought that but wanted a visual confirmation. Plus it's always fun to see frogs. :P

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

  • FalafawlFalafawl Member Posts: 4
    Can I somehow upload the game to this post?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you click the link to the Forum FAQs in my signature, one of the topics explains how to upload images or project files.

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

  • FalafawlFalafawl Member Posts: 4
    That'll take too long. Can I make separate eyes and constrain them to the frog somehow? The eye sockets are currently part of the frog picture.
Sign In or Register to comment.