This site requires JavaScript, please enable it in your browser!
Greenfoot back
ImASuckerAtThis
ImASuckerAtThis wrote ...

2013/1/15

I need help with for loops

ImASuckerAtThis ImASuckerAtThis

2013/1/15

#
ok hey guys, im just a student in computer science class in tenth grade, and one of our projects is to make blocks in the world by using for loops... which i have no idea how to do i mean i know how to do it ITS THE WHOLE: for ( int i = #; i< #; i++) { addObject ( new iceBlock(), 25*i, 580); thingy the image of the block is technically 25x25... but if i put it in a world (80,60,10), how would that work? how do i make a game with 28 boxes by 28 boxes on both the length and width of the world. I want it to fit properly, as in no half blocks at the edges of the world, please help mw with the four loops: give me an example question and please solve it so i can see how its done.. make it really simple......... please reply ASAP..project due in 3 days :0 }
You need to login to post a reply.