Can you save a drawing?

Fal01Fal01 Member Posts: 460
Hi all,

In my game you have to draw lines like in Cart Cow. Is it possible to save the lines?

It’s not a bug – it’s an undocumented feature

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yes and no.

    First the no: GameSalad does not allow access to the camera or photo albums.

    Now the yes: You could save endpoint positions to a table each time a line is drawn and then if needed re-create those lines from the data.

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

  • Fal01Fal01 Member Posts: 460
    @tatiang,

    Oh good!(the yes bit), could you give me a rough idea of the best way to implement it?

    Cheers

    It’s not a bug – it’s an undocumented feature

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It depends how you are drawing the lines but let's say that you have a rule that determines one endpoint (x & y) when mouse button is down and another that determines the other endpoint when mouse button is up. In the first rule, you would add a table row and change the values of the first two columns' cells to the x & y position of the first endpoint. In the second rule, you would change the values of the third and fourth columns' cells to the x & y position of the second endpoint. Then you would do a Save Table behavior.

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

  • Fal01Fal01 Member Posts: 460
    Thanks a lot, i'll give it a go.

    It’s not a bug – it’s an undocumented feature

Sign In or Register to comment.