AOA.. I am having problem in creating instance variable in game - TopicsExpress



          

AOA.. I am having problem in creating instance variable in game maker. The scope of variable must be available for every event of an instance. I want to count the number of hits a bullet will have with an object. For this, I am creating a variable called hits in the create event of the bullet object. ive tried both procedures (var hits = 0;) and (hits = 0;) but the problem is, when I try to access the hits variable in collision event of bullet object, it gives error which indicates hit variable is not defined.
Posted on: Sun, 02 Mar 2014 12:46:43 +0000

Trending Topics



Recently Viewed Topics




© 2015