Make actors come to life

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
Is there a way to draw a shape with your touch and make it become a actor in the scene?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Not currently. All of your actors need to be pre-defined. You cannot create them dynamically like that.
  • mrfunkleberrymrfunkleberry Member Posts: 424
    You can have some predefined shapes, star, box, circle, triangle. Then on a timer of 0 record mouseX,Y values into some game attributes, (30 will be enough) ie: game.mouseX1, Game.mouseY1, game.mouseX2 etc etc. now you'll need some trig functions to determine what shape was drawn. I'll let the math guys step in here, i've experimented with this before (flash) and it's not too hard. Once you determined the shape, spawn the correct actor.
Sign In or Register to comment.