View Single Post
I feel trapped - For each with methods? Print variable?
Old
docsaintly
Guest
 
Status:
Posts: n/a
Cool I feel trapped - For each with methods? Print variable? - 09-28-2009, 10: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