Boolean Attribute not working
ElemetApps
Member, PRO Posts: 55
in Help Wanted
Ok so I have an actor the size of the screen and it is clear. When you touch it the attribute turns true. When the attribute turns true a ball falls and hits a tile. There are random tiles floating by and you try to hit each one. When the ball touches the tile, attribute goes to false and the ball goes back up and so on. This works pretty well, untill there is a lot of tiles spawned in a row. To hit each tile when theres a lot of them being spawned, you have to click the clear actor a bunch of times to hit the tiles. After this is done, the attribute stops working, but the game keeps going on. Why is this happening?
Comments
You'll need to provide at the very least a demonstration of what's happening and ideally some screen shots of your logic.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Booleans can be tricky buggers. They can be easily trapped in a loop if your logic isn't tight. I usually use an integer and make a switch using the Mod function. See the video I have on using the Mod.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS