Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Joining Block Structures
Old
NeoCorps
Junior Member
 
NeoCorps's Avatar
 
Status: Offline
Posts: 1
Join Date: Sep 2011
Location: England
Default Joining Block Structures - 09-13-2011, 09:56 AM

Block Structure as in a block of code from a segment of the program. We did it today in class but I didn't write it down and now I'm stuck :P

How would I join the block structures together? Or "methods", thanks.

Edit: Sorry I don't think I explained it correctly. I'm trying to call a variable on another method.

Last edited by NeoCorps; 09-13-2011 at 10:00 AM.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 09-13-2011, 05:58 PM

Quote:
Originally Posted by NeoCorps View Post
Block Structure as in a block of code from a segment of the program. We did it today in class but I didn't write it down and now I'm stuck :P

How would I join the block structures together? Or "methods", thanks.

Edit: Sorry I don't think I explained it correctly. I'm trying to call a variable on another method.
You can't join "methods" together, but you can write separate methods, and then put each of these methods into the main method. (It works exactly the same way as putting any other chunk of code like a "move" method in, but it is a method, built off of methods, if you get what I am saying.) Say you wanted an object to jump. Instead of writing the jump code in the main method, you could write it in its own method, and then drop that method into the main method. I hope this helps! Let me know if you have any other questions!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.