0

Hi everyone how can i prevent the incrementation to exceed the limit?

7th Dec 2022, 4:03 PM
light angel
light angel - avatar
6 Respuestas
+ 3
Which incrementation? Please show an example code. You can use an if-statement to test if an integer variable exceeds a given limit.
7th Dec 2022, 4:05 PM
Lisa
Lisa - avatar
+ 1
Sololearn playground is not interactive so I cannot test your code. Which variable do you want to prevent from exceeding a limit?
7th Dec 2022, 4:12 PM
Lisa
Lisa - avatar
7th Dec 2022, 4:05 PM
light angel
light angel - avatar
7th Dec 2022, 4:10 PM
light angel
light angel - avatar
0
Hp, Mp
7th Dec 2022, 4:14 PM
light angel
light angel - avatar
0
I tried to figure it out on how to prevent skill spamming to make the game realistic, I'm a beginner
7th Dec 2022, 4:14 PM
light angel
light angel - avatar