Constrain constrained to 0 problem

Hi everyone,

Nice meeting you.
I am trying to apply constrain self.position.x to game.Touches.Touch 1.X (and same thing for Y).
For an unknown reason I am unable to. In Actor (Instance) backstage window I can type "constrain attribute" and then choose constraint (either pick or type self.position.x). But when I try adding "to" attribute/devices/touches/touch1/x it's turned into 0, and when type it, its just ignored.
To make things complicated, first time I tired it worked for X, but not for Y, and now its not working at all...
Any point in good direction would be much appreciated.

Best regards,
Marian

Best Answer

Answers

  • GOG_GamesGOG_Games Member Posts: 130
    What are you trying to accomplish with these functions?
  • GOG_GamesGOG_Games Member Posts: 130
    I mean, what are these functions doing to your game? Is anything based around them?
  • siwiaksiwiak Member Posts: 3
    Hi,

    Thanks for a very prompt replay, I didn't expect THAT!
    Ok. My idea is for the game for small kids - they will drag items (png's) around and put them in proper silhouettes (I know, mechanics is not at all innovative, but it's a game for small kids, not a rocket science - been there, done that, I know the difference). As this is my first contact with GS I decided I'll try to make canvas where I can drag some actors around, later develop other actors (reacting for proximity of the dragged actors, like fixing position of correctly dragged ones), later maybe add repositioning on release improperly dragged actors to a starting position. That's all. Simple as blueprint of the flail.
    If there is a template (reasonably priced) having all or some of those functionalities, I would be much grateful.
    Best regards,
  • siwiaksiwiak Member Posts: 3
    Dear DBA,
    Thank you very much! That's more than I could expect!
    I won't forget to acknowledge you guys when I'll finish my project.
    Best regards,
Sign In or Register to comment.