spawn actor in mirrored location?
Alano
Member, PRO Posts: 70
Hey there,
Imagine a horizontal property line across a field. Any tips on spawning an actor on both the upper and lower halves? Not sure where to begin.
Thanks all!
Alan
Comments
you can put in location were you want actor to spawn. X,Y.
Thanks BBEnk.
My goal is to have it where when I tap on the lower half a dot will spawn/appear. The reflection of this will happen to the upper half. So If I tap a zig-zag row of dots on the lower half the mirror of it will appear on the upper half as well.
Thanks!
When you touch screen have it spawn a dot, then have that dot spawn another dot a certain distance away. But make sure the second dot is a different dot with no spawn otherwise your gonna have a spawn loop that never ends.
The maths is:
Height of the scene - height of lower dot = height of the upper dot.
Here's a demo.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Demo file.
Link: https://www.mediafire.com/?ed3cno6icmskvfs
A slight variation.
Move the horizontal line to where you want it, then hit preview and the reflection will take into account the horizontal line's position.
Link: https://www.mediafire.com/?olep11j3wja11tf
Damn, beaten to the answer by @tatiang !!
Well, I'm still the winner because my project is bigger.
@Socks
Wooooo!
Oh, darn.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hey thanks for your help! You guys rock!
Hey Socks, I can't open the demos you made. Not sure if it's because I'm on a Mac or not. Seems that the working file is a ".gsproj" and my gamesalad (v 0.12.10) is not reading this file.
Change file extension to .gameproj
Thanks mc99093. Still no luck.
Here is what I see "reflection.gsproj" and tried "reflection.gameproj." No luck.
You have to change the name of the folder to add ".gameproj" to the end.
Here's the renamed file (attached).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Do you have a full stop on the end of "reflection.gameproj." ?
Thanks guys! That worked like a champ! Nice touch in having the two colors. Appreciate the help.