spawn actor in mirrored location?

AlanoAlano 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

  • BBEnkBBEnk Member Posts: 1,764

    you can put in location were you want actor to spawn. X,Y.

  • AlanoAlano Member, PRO Posts: 70

    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!

  • BBEnkBBEnk Member Posts: 1,764

    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.

  • SocksSocks London, UK.Member Posts: 12,822

    @Alano said:
    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!

    The maths is:

    Height of the scene - height of lower dot = height of the upper dot.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Here's a demo.

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

  • SocksSocks London, UK.Member Posts: 12,822
  • SocksSocks London, UK.Member Posts: 12,822

    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

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2014

    Damn, beaten to the answer by @tatiang !! :)

    Well, I'm still the winner because my project is bigger.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @Socks‌

    Damn, beaten the answer by tatiang !! :)

    Wooooo!

    Well, I'm still the winner because my project is bigger.

    Oh, darn.

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

  • AlanoAlano Member, PRO Posts: 70

    Hey thanks for your help! You guys rock!

  • AlanoAlano Member, PRO Posts: 70

    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.

  • mc99093mc99093 Member, PRO Posts: 133

    Change file extension to .gameproj

  • AlanoAlano Member, PRO Posts: 70

    Thanks mc99093. Still no luck.
    Here is what I see "reflection.gsproj" and tried "reflection.gameproj." No luck.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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

  • SocksSocks London, UK.Member Posts: 12,822

    @Alano said:
    Thanks mc99093. Still no luck.
    Here is what I see "reflection.gsproj" and tried "reflection.gameproj." No luck.

    Do you have a full stop on the end of "reflection.gameproj." ?

  • AlanoAlano Member, PRO Posts: 70

    Thanks guys! That worked like a champ! Nice touch in having the two colors. Appreciate the help.

Sign In or Register to comment.