GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

is it possible to highlight word puzzle?

emojiemoji Member, BASIC Posts: 46

hello, would someone guide me how to highlight the word in the puzzle like the image?

Comments

  • ArmellineArmelline Member, PRO Posts: 4,851

    Here's an old demo I made that contains a similar concept. It wouldn't be overly difficult to apply the same general concept with some restrictions to get the result you're after.

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

    Without taking a look at @Armelline's demo, the way I would do it is to determine the start and end points (x,y) and then position a rectangular actor at the center point between the two and rotate it according to the slope of the line between the two points (potentially using vectorToAngle).

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,915
    edited June 2019

    Here's a demo of what I mentioned. It doesn't have tables or anything fancy yet but I think you'll get the idea. The middle letters (P, P, L) are in fixed positions but if you move the first letter (A) and last letter (E), you'll see that the highlight actor repositions and rotates to follow them. It won't auto-size but that could be added.

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

  • emojiemoji Member, BASIC Posts: 46

    thanks very much! I'm going to dive into this now since i have free time now.

Sign In or Register to comment.