Alice Community  

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
I feel trapped - For each with methods? Print variable?
Posts: n/a
Cool I feel trapped - For each with methods? Print variable? - 09-28-2009, 11:08 PM

Hello all, I'm a somewhat experienced programmer taking an Alice & Java course to satisfy degree requirements, I feel like I'm trapped inside a box.

I'm trying to do some things that are pretty easy by programming standards, but Alice is being very limiting. I'd like to:

- Show a variable as text on the screen.
I have tried this. I have it set up so that when the user clicks on an object it will increment the variable, i have watched the variable and it indeed increments, but when I have something say it or even print it at the end of the scene, it always reports its initialized value (1).

- Have each object within a list perform a method (and not have to do all the actions within the for all area)

- Copy a method from one object to another.
This is not mandatory, but would be nice. In regular programming I would just copy the code from one class to another.
Reply With Quote

for all, method, text, variable

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.