
-----------------------------------
Turing Man
Wed Nov 17, 2010 4:27 pm

Moving Platform?
-----------------------------------
What is it you are trying to achieve?
Make a moving platform like on Mario. (Vertically)


What is the problem you are having?
I would like to know how to make a moving platform on Mario. (Vertically)


Describe what you have tried to solve this problem
I tried to use a for. 


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


setscreen ("graphics:800;370")

procedure movingBlock (x, y : int) 
    % precondition  : x and y are passed
    % postcondition : draws a moving box

        drawfillbox (700, 100, 800, 110, 12)

end movingBlock


Please specify what version of Turing you are using
4.1

Thanks.

-----------------------------------
TokenHerbz
Wed Nov 17, 2010 7:18 pm

RE:Moving Platform?
-----------------------------------
Your wanting the BOX? to move?

you have it drawing at specific x,y (700/100), so you would have to change that to x,y variables that can change position, thus moving the block to how you want it to move.

-----------------------------------
Turing Man
Wed Nov 17, 2010 7:23 pm

RE:Moving Platform?
-----------------------------------
Oh theres a much more complex and easier way to do this. I just can't wait till tomorrow at school. :(
Thanks though.
