Incorrect spawn location

I have a game I'm working on (shocker!) and when I touch a button it highlights the button to confirm what kind of actor I'm going to spawn. You then touch down again and it will spawn that type of actor where you've touched down. The issue I'm having is that my scene is larger than a single screen. I allow for swiping to see the rest of the map and if you do this and then touch the button and try to spawn the new actor goes to the original screen X,Y coordinates instead of the actual full screen X,Y coordinates. (This is all probably clear as mud so I'll attach a video).

sudobash.net/downloads/spawn.mov

Comments

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

    You have to add the camera origin position to the x and y coordinates.

  • scott.m.rowleyscott.m.rowley Member, PRO Posts: 16

    @tatiang said:
    You have to add the camera origin position to the x and y coordinates.

    Can you tell me how I can find that? I thought I remember seeing it also but now I can't.

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

    You'll need to unlock the actor by double-clicking on it within the scene and then clicking the lock to convert it to an instance in order to access the scene attributes in the Attribute Browser.

  • scott.m.rowleyscott.m.rowley Member, PRO Posts: 16

    Ahhh, yes. I forgot about the unlocked actor thing. Thanks!

  • scott.m.rowleyscott.m.rowley Member, PRO Posts: 16

    Works perfectly, many thanks. Struggled for at least a couple of hours trying to figure it out on my own.

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

    You're very welcome.

Sign In or Register to comment.