Adapting tshirtbooth's "fruit ninja" tutorial, needing help.

DoManDoMan Member Posts: 102
edited November -1 in Working with GS (Mac)
I have opened up tshirtbooth's wonderful tutorial for a fruit ninja remake, and like to implement the style of how you can "draw" lines around, into my game. I have studied the math a bit and put everything in order, carefully replacing the placeholders with the elements and actors I need. However, I noticed that when I changed the templates size, everything went a bit wonky, and ends up drawing ziggy zag lines all over. My game is for iPad, and this is probably what is infecting in my game now, and also, the actor I want to "draw" a line in it's path will be spinning around pretty wildly. Any help for adjusting the math and logic for iPad, and my crazy pen, properly? Thank's for understanding, that is, if you understand..?

Comments

  • DoManDoMan Member Posts: 102
    After playing around with the template a bit more, I think I have fixed the above problems, however, new ones have now appeared. In the template, i changed it so that a green block is the actor that creates the drawable line. However, the line it creates is very jagged and hairy, with endpoints sticking out of corners when the block makes sharp turns. All the maths is exactly the same, except with (game.mouse.position) i have replaced them with the positions of the block. I have not significantly changed any logic or maths to do with the endpoints though. I seriously am now needing help. How do those endpoints work, and how can I make them fixed?
  • DoManDoMan Member Posts: 102
    What? I think i am going mad. Not am I only posting questions to myself, i just deleted that "systemspen" and added a rule onto the timer for making the line segments, IT WORKS!
    Now that avatar of mine (see left image) is exactly how I look right now, THANKS SOUS CHEFS!!!! ;-{)
  • DoManDoMan Member Posts: 102
    Okay, not again. Everything is all good up until now. The nice little block leaves a beautiful trail, thanks veyr much to tshirtbooth for that. But at the start of when the block starts making the trail, a big longe segment joins the last place the block existed, and the first instance of where the new block is. I have tried many many methods of stopping it doing that, lot's of sciency nerdy mathy stuff, but this dillema doesn't want to die! Please help me try kill it!!
  • DoManDoMan Member Posts: 102
    Why does my line join the last point of drawing, and goes and connects it to the newest one? Such as when you start drawing in a new place, a big line connects the two drawing areas. Ugly. SOMEONE PLEASE HELP!
  • cmw333cmw333 Member Posts: 76
    Try asking this question in the new "cookbook" One of the pros should help you out!!
  • DoManDoMan Member Posts: 102
    Excuse me being new to this "cookbook", but how exactly do I ADD a question, and not just look for previous ones?
Sign In or Register to comment.