How to create a drawing system?

MantoManto Member Posts: 796
edited November -1 in Working with GS (Mac)
I would like to create a drawing system where you can draw lines.
I haven't found any tutorials from gamesalad pages.
Is there any way to create one?

Thanks.
«1

Comments

  • StusAppsStusApps Member, PRO Posts: 1,352
    Not possible with gamesalad at the moment. I saw someones shared project where they achieved it by leaving loads of black dot actors behind as your move across the screen. It's not ideal though and leaves a dotty line as well as being hugely resource hungry spawning all those actors.
  • MantoManto Member Posts: 796
    Would it be possible to create a line creator?
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Here is a tutorial:
  • MantoManto Member Posts: 796
    Yeah thanks. I will try that.
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    http://gamesalad.com/game/play/48407

    based on tshirts line demo

    Just make the poop a small dot
  • PhoticsPhotics Member Posts: 4,172
    Mantu said:
    Would it be possible to create a line creator?

    Yes, I think this is possible with GameSalad.
  • MantoManto Member Posts: 796
    How could i make it?
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Mantu said:
    How could i make it?

    I just posted project you can download

    It may not be exactly what you want but it is a great start on touch to spawn

    Just replace the terds with lines or dots or whatever... the eyes and all that can be replaced with lines.

    It also has a quick system for switching what you want to spawn

    It's a sort of .....a paint program :)

    Not the greatest but it works lol
  • PhoticsPhotics Member Posts: 4,172
    Mantu said:
    How could i make it?

    I'm not ready to make this information public. If you want to know, you can email me. The contact information is at the bottom of http://photics.com.

    Maybe it's already explained in the project mentioned above, but I didn't want to download it. Like JamesZeppelin, I also found it offensive. HA HA!
  • MantoManto Member Posts: 796
    I have posted my game where i need the drawing system. I already have a kinda working drawing system in that game but i would like to get better one. Here is the link http://gamesalad.com/game/play/79338
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    When you make a post do you actually read the responses?

    lol
  • PhoticsPhotics Member Posts: 4,172
    I changed my mind. Here's how I'd do the line drawing thing...

    Touching the screen would spawn a line actor. That actor's rotation and size would change based upon the mouse position. If you read the math section in my book, you should know that can be accomplished with two functions... vector to angle and magnitude. The magnitude would determine the size of the line.

    Once the finger is released, the line has to be locked. That can be accomplished with an actor attribute.

    This is a straight line though, not curved.
  • MantoManto Member Posts: 796
    Thanks a lot!
  • ORBZORBZ Member Posts: 1,304
    Here, I made this for you guys:

    http://gamesalad.com/game/play/79364

  • synthesissynthesis Member Posts: 1,693
    Nice demo ORBZ!!!

    Are you stretching the actor width/height if the X or Y doesn't change? Or are you spawning at every pixel?
  • ORBZORBZ Member Posts: 1,304
    Lines, not dots :)
  • RHRH Member Posts: 1,079
    @ ORBZ, Nice! Downloading it now to take a look at it, cheers!
  • PhoticsPhotics Member Posts: 4,172
    This demo, of course, has a natural progression...

    FRUIT NINJA!
  • PhoticsPhotics Member Posts: 4,172
    I looked at the demo. It's very good.

    It's similar to a chalkboard, where actors are being spawned at a fast rate - but this works a lot better. Basically lines are being drawn with the appropriate length and angle. (Did my post help?) It's quite seamless though. It's an excellent drawing tool.

    I think there's a way to optimize it though. Instead of spawning segments every .1 seconds, perhaps a new line should be spawned when a change in angle is greater than 1° or the mouse is released. That way, the number of lines would be dramatically reduced.
  • TymeMasterTymeMaster Member Posts: 527
    Hey ORBS, that is awesome!
  • VoidedSkyVoidedSky Member Posts: 1,095
    WOW! Amazingly awesome Demo
  • StusAppsStusApps Member, PRO Posts: 1,352
    I take back what I said at the top.

    It is possible! That is really amazing.
  • JackBQuickJackBQuick Member Posts: 524
    Very nice, ORBZ!
  • ORBZORBZ Member Posts: 1,304
    Thanks guys :)

    @ Photonics

    Naw, I made that before I read this post. It's how I always figured a drawing program would have to work.. I only recently decided to share my knowledge with everyone else instead of hoarding it. It's kinda fun helping others, win-win, ya know? ;) Now if only I could finish my superfun game! :) I've been in a bit of a rutt lately. That shall end NOW! Oct 15th my game WILL be done!

    Your optimization sounds good. I made this in about 30 mins, your welcome to implement the optimization you speak of though, it sounds like it will work and it should cut down on the number of spawns. I'd be curious to know if it does work.
  • ORBZORBZ Member Posts: 1,304
    Here's a little extra fun :)

    DrawSmash!

    http://gamesalad.com/game/play/79413

  • victorkin11victorkin11 Member Posts: 251
    @ORBZ

    Great demo! Should make it to be a completed game!

    thank for share!
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Wow!

    That is great!
  • expired_012expired_012 Member Posts: 1,802
    Nice job orbz! When everyone thought it was impossible you made it...possible

    Well done! :)
  • MantoManto Member Posts: 796
    Thanks orbz!
  • PhoticsPhotics Member Posts: 4,172
    artonskyblue said:
    Nice job orbz! When everyone thought it was impossible you made it...possible

    Everyone?! I think not! :-)
Sign In or Register to comment.