Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Moving Platform?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Turing Man




PostPosted: Wed Nov 17, 2010 4:27 pm   Post subject: 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)

Turing:

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.
Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Wed Nov 17, 2010 7:18 pm   Post subject: 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




PostPosted: Wed Nov 17, 2010 7:23 pm   Post subject: RE:Moving Platform?

Oh theres a much more complex and easier way to do this. I just can't wait till tomorrow at school. Sad
Thanks though.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: