"Draw" A bouncing ball that draws a line.

GreenHavenGamesGreenHavenGames Member Posts: 62
edited July 2012 in Working with GS (Mac)
I am trying to use the project file "Draw" for a new use. Right now it draws a line where you touch, like a paint program. What I want it to do is to draw an unbroken line behind a bouncing ball as though the ball is drawing the line where it has been.

If anyone has any other suggestions on how to accomplish this, please let me know.

thanks,

Sam

Comments

  • EthanZarovEthanZarov Member Posts: 156
    I would try to find the Ink Template where you draw a line and see how you do it with your finger. Then, I don't think it would be too hard to swap it around.
  • GreenHavenGamesGreenHavenGames Member Posts: 62
    That is actually what I have been working on for a week. The line starts dead center of the screen and just makes a seemingly random lines that all cross the center.
  • GreenHavenGamesGreenHavenGames Member Posts: 62
    Anyone have any other ideas or templates I could use to accomplish this? It's one of the last things that I need to publish my game!

    thanks-
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I have a golf game I've been working on that does just this. I basically spawn a "dot" actor from the ball every so often using a timer, and then have each dot fade after a certain amount of time. It's very simple and looks great.

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

  • GreenHavenGamesGreenHavenGames Member Posts: 62
    At tatiang:
    I have tried just this. However, I want the dots to form a line and it doesn't there are obvious spaces, especially when the ball moves faster. Does your "line" make a solid or are there breaks?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @GreenHavenGames sorry, with the login issues and a trip I was on, I was away from the forums for a while. It's true that that method creates breaks in the line when the actor moves too quickly. I haven't found a better way yet.

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

  • GreenHavenGamesGreenHavenGames Member Posts: 62
    Thanks again. I went ahead with your method, and it's good enough!

    Maybe someday if the game takes off, I'll rework it.

    Thanks!
Sign In or Register to comment.