How do I Post to the Game Q&A Forum?

Welcome to the FTC Game Q&A Forum! If this is your first time here, please refer to the Instructions for Forum Use section before posting.

Thank you!

Posts created to sell a product or service are not permitted and will be deleted!

Results 1 to 2 of 2

Thread: Calling methods or functions in Blocks

  1. #1

    Calling methods or functions in Blocks

    In Blocks programming, is there a way to create and reference methods and functions? Examples would include scaling the joystick controls or writing a method such as multiply by 5 in one part of the program and then using it in another part of the program without having to write the method again.
    Thanks in advance,
    Tom Lum

  2. #2
    Technology Expert
    Join Date
    Jan 2015
    Location
    California
    Posts
    204
    Quote Originally Posted by FTC6180 View Post
    In Blocks programming, is there a way to create and reference methods and functions? Examples would include scaling the joystick controls or writing a method such as multiply by 5 in one part of the program and then using it in another part of the program without having to write the method again.
    Thanks in advance,
    Tom Lum
    Yes, you can create functions and then call them. In the toolbox, there is a Functions category (near the bottom).

    Last edited by Comrade 17; 02-10-2017 at 01:56 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •