I am creating a game that will increase the number of enemies on screen! every minute ( since i am new to game making but not programming ) what i was doing is using a function x ( x being the total number of enemies) being dividing by 3 for weak enemies 4 for normal and 5 for strong. now what i want to use is a floor or ceiling function which if i get a number like 2.45643 it goes to 3 or 2
anyway i can do this??? with lua…cause thats the only way i can think of increasing the number of enemies on screen.
unless you brilliant folks have a better way [import]uid: 215264 topic_id: 35900 reply_id: 335900[/import]