Spawning
Hi guys,
I'm working on a little christmas game where you have to throw presents from Santa's sack and they have to hit the chimney's below.
I have the game working, apart from 1 vital part, the houses are scrolling along, which is great - however, I need to put in some invisible objects to overlay the chimneys, so when the present touches the invisible object a point is added to your score.
I was going to do this by spawning invisible actors at the same speed as the moving houses and then destroy the actors once they have disappeared off screen, however, this doesn't seem to be working :-(
Can anyone suggest how I can do this? i've had a look through the site and on the gamesalad templates that come with the software, but i can see, to see anything that can help me with this.
I'm happy to pay someone couple of $$ if they can help out here :-)
Cheers,
Chris
I'm working on a little christmas game where you have to throw presents from Santa's sack and they have to hit the chimney's below.
I have the game working, apart from 1 vital part, the houses are scrolling along, which is great - however, I need to put in some invisible objects to overlay the chimneys, so when the present touches the invisible object a point is added to your score.
I was going to do this by spawning invisible actors at the same speed as the moving houses and then destroy the actors once they have disappeared off screen, however, this doesn't seem to be working :-(
Can anyone suggest how I can do this? i've had a look through the site and on the gamesalad templates that come with the software, but i can see, to see anything that can help me with this.
I'm happy to pay someone couple of $$ if they can help out here :-)
Cheers,
Chris
Comments
Darren.
When they go off-screen (say -100 depending on the size of the house) have it change its X coordinate to something off-screen on the other side (say x=520 for example).
Experiment to see what works best there...
THEN.
You can have each house be an individual house - say you use four houses.
Number them 1-4.
Then have four invisible chimney actors. Number them 1-4.
Constrain chimney 1 to the X/Y position of the chimney on House 1
Do the same with the other chimney's and houses.
That should do it.
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Darren.
Because remeber its monday now. As of today all that will be deleted.
Darren.
Darren.
Thank you for your help - very useful - cheers guys.