View Single Post
Re: Calling methods from different classes
Old
  (#5)
Zacker
Project Leader, Lead Level Designer, Waypointer
 
Status: Offline
Posts: 337
Join Date: Mar 2004
Location: Denmark
Default Re: Calling methods from different classes - 12-06-2004

Thanks for the replies. After a good talk with Musicman on MSN, we were able to work it out.

The variable liv needs to be declared as static. That prevents what Botman explained from happening.

It is done the same way in both Java and c++:
Code:
static int liv;
  
Reply With Quote