Calculating a direction based on player object

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • i was wondering if setting a direction of another object based on a player object.
    i want to know how to do the next thing:
    im using the 32 directions and i have my player sprite that is on direction 0 (right) and i want another object to change to a specific direction based on the players direction (Right), lets say i want the other object to be in 2 when is facing right and in 14 when is facing left, is there any calculation that allow this?

  • I'm not sure if this was your question, but you can simply click on the "1+1 button" to have numbers for the different directions.

    Upon pressing Right Arrow: Set direction "player object" to 0
    Upon pressing Left Arrow: Set direction "player object" to 16
    Compare direction of "player object" 0: set direction "Active 2" to 2
    Compare direction of "player object" 16: set direction "Active 2" to 14

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

  • Hi, I have problems with the object but in Android, I have not tried in HTML5 (next week I do). If the object is present in the frame of my game makes abort and exit the app, if you deactivate "Create on Start " in the preferences the frame runs but omitting the functions of rotate of "Direction Calculator ".

    Someone could tell me if he had the same problem?

    Thanks!

    José Rafael Marcano
    Please login to see this link.

  • I tried in HTML5 and as in IOS and Windows works perfectly, the problem comes in Android. I tried to isolate the problem in the APK and I have not had results, because if I put the extension alone in a new file does not give problems but in my game generates the error (I imagine that conflicts with some other extension), so I have not uploaded this to the Bugbox.

    Someone from CT can help me, Fernando?

    José Rafael Marcano
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!