How to make googley eyes?
Falafawl
Member Posts: 4
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
-
tatiang Posts: 11,949You 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
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
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User