Move to last click/tap help!

QuireQuire Member Posts: 54
edited November -1 in Working with GS (Mac)
I've managed to get an actor to move to the last place clicked/tapped on the screen, cool! But now I've bamboozled myself trying to have levels bigger than the screen, because my rules are relative to the screen...not the level!

How do I decouple them and reference the background actor instead? Which, of course, is moving thanks to the cam control on the main/player actor?

Many thanks in advance!

Comments

  • QuireQuire Member Posts: 54
    I should point out for the sake of clarity that in essence I want RPG-style character controls. So, the way that Dragon Age does it, frex.
  • StuartYStuartY Member Posts: 134
    Hi quire,

    Sounds like you need to edit your actor instance, which will give you access to the scene attributes, rather than just the screen ones. You can test this out, but don't "commit" until you've got your prototype the way you want it, or you'll have a nightmare trying to sync your actor between scenes.
  • QuireQuire Member Posts: 54
    That's a good idea, Stuart, thank you!

    Is there some way to reference where on an actor a click occurred? I can't seem to find one.
  • QuireQuire Member Posts: 54
    I've got some annoying draw glitches going on, but I've cracked it by adding the camera X and Y positions to the click/tap X and Y positions.

    So despite the draw glitches (the player actor is doubling up a lot), it is nice to have it wandering around the entire level! :)
  • StuartYStuartY Member Posts: 134
    To reference where an actor was clicked on, you have to use a second, hidden object.

    This tutorial shows you how to constrain it to your first actor;



    You'll need to position and size it right (over the actor's head, say). Then you can make it invisible, but still test for clicks.
  • StuartYStuartY Member Posts: 134
    Nice one tsb, that'll help me do it simpler too.
  • QuireQuire Member Posts: 54
    tshirtbooth, you are a star, mate! Nice one.

    Stuart, thanks for your help too!

    Good community you guys got going on here. Thanks again!
Sign In or Register to comment.