A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
Well, I need a function that makes a tetr shape rotate over its center
anonymous
 5 years ago
Well, I need a function that makes a tetr shape rotate over its center

This Question is Closed

angela210793
 5 years ago
Best ResponseYou've already chosen the best response.1where do u get these???????????????? O.o

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0just trying to program a tetr and i need this function ^^

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0it should rotate when u pick right or left arrow keys,

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0and i think that i can allot this rectangle to rectangles to make the collapsion test and to make this shape really rotate :)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0WELL HERE ITS THE THINg i think

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0just look at the thing i am thinkining on it i mean rotate.jpg

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0well, 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

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0if (keypress == rotateleft) {imageN = imageN+1}

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0N just means whatever number it is; you get the next image i the sequence

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0hmm i don2T got it sarry :(

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0image1 = 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0so images change splaces with eacht other kk

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0if you are moving sections of defined areas; then have an array built up if area locators

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0but its the easier way of it but without this trick how can we rotate this?

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0similar method to the cannon rotating; converting polar coordinates into cartesians

amistre64
 5 years ago
Best ResponseYou've already chosen the best response.0but unless you have the computational power to keep track of all the points in an array, it gets messy

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0but the center of the shape is orign this time ye?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0thank you and i have to leave now bb
Ask your own question
Sign UpFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.