A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

Well, I need a function that makes a tetr shape rotate over its center

  • This Question is Closed
  1. angela210793
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    where do u get these???????????????? O.o

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    just trying to program a tetr and i need this function ^^

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it should rotate when u pick right or left arrow keys,

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i think that i should make an rectangle and then put the shape into of it and shapes and rectangels x and y should be same. then i should make the rectangle turn over its square

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    and i think that i can allot this rectangle to rectangles to make the collapsion test and to make this shape really rotate :)

  6. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    WELL HERE ITS THE THINg i think

    1 Attachment
  7. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    just look at the thing i am thinkining on it i mean rotate.jpg

  8. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    well, rotation of an image is tricky; but you can cheat by having an image of it in each position and then flipping thru the images

  9. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    like a movie screen

  10. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if (keypress == rotateleft) {imageN = imageN+1}

  11. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    aha!

  12. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but whats N means?

  13. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    N just means whatever number it is; you get the next image i the sequence

  14. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    hmm i don2T got it sarry :(

  15. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    image1 = up; image2 = left; image3 = down ; image4 = right display image3 when rotate left; display image2 when rotate left; display image1 when rotate 3 times to the right; display image2, then image3, then image4

  16. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ahh now i got it

  17. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so images change splaces with eacht other kk

  18. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    its a CHEAT!! :(

  19. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if you are moving sections of defined areas; then have an array built up if area locators

  20. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    its an effect lol

  21. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yea :D xd

  22. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but its the easier way of it but without this trick how can we rotate this?

  23. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    similar method to the cannon rotating; converting polar coordinates into cartesians

  24. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but unless you have the computational power to keep track of all the points in an array, it gets messy

  25. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but the center of the shape is orign this time ye?

  26. amistre64
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yes

  27. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    kk

  28. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thank you and i have to leave now bb

  29. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.