Partially responsive actor
Village Idiot
Member, PRO Posts: 486
What if I had randomly spawning actors which resembled a ball attached to a stick, with the stick pointing down and the ball sitting attached on top of the stick. Would it be possible to make it so that only the ball was touch sensitive via behaviours etc? I've tried searching online for any clues - but have had no luck. Could someone please help me.
Comments
@monkeyboy simian can you make the ball and stick two actors? You the randomly spawn the one, which in turn spawns the other part. This way the ball can have the touch behavior, the stick not.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Thanks for the reply. I'm not sure how you'd do that (though I'll try). I also forgot to mention that the ball on the stick is moving from right to left after it spawns. Does this complicate things? Would you know of any tutorials on this? It seems like a hard one to google.
@monkeyboy simian can you post a sketch of what you want?
You need to give us as much detail as you can.
Your request sounds quite simple, someone might spend 15 minutes making a small template to show how it is done, only to be followed by a "I forgot to mention...", meaning the 15 minutes are wasted.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
oh.. sorry. The idea is basically that I'm trying to make a game where the hero flies from left to right and as he does so, balloons on sticks are moving from right to left. They're being generated by a random spawner. The thing is though that I think it would look weird if when the hero touched the stick - he got a point. I think he should only get a point when he touches the balloon which is attached to the top of the stick. If I make an actor of a balloon and stick then the whole lot would be touch sensitive. I only want the ballon to be responsive.
@monkeyboy simian
Ok, then keep the "balloon and stick" actor as one.
Make a game attribute for the Hero's Y position. Inside the Hero, constrain this game attribute to the actual Y position.
Constrain game.HeroY to self.Position.Y
Put the touch rules (collides or overlaps) in the "Balloon and Stick" actor. Added to this you can now test if the height of the Hero (game.HeroY) corresponds to the top part of the "Balloon and Stick" actor.
Ask if it is not clear.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Thanks for that. I'll be putting in some time to try and make it work. I'm unsure of how to make a game attribute for the hero's y position. Sorry, I'm not very good at this yet.
I'm re-reading your reply.. and I see what you're talking about. Just hard for me to understand how to make it work.
@monkeyboy simian I will have a quick demo for you in about 30 minutes.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
that'd be fantastic.. thanks!!
@monkeyboy simian give this a try.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
thanks heaps for that..it's exactly what I'm trying to do. I'll get started on it tomorrow after work. Gotta be up in 6 hours - after midnight here. Nice touch with the flapping wings.. I'll let you know how I go if you like.