Forum Discussion
kscaramuzzi
8 months agoCommunity Member
Avoiding Negative Number Variables - Set variable to a value (0), but it presents as to a variable
Hello! I'm working on building an eLearning game that uses points, and keeps track of the players score based on how long it takes them to answer the question correctly (or how quickly they answer in...
- 8 months ago
I've seen that bug. As a workaround, instead of value in the else statement use random number between and set the top and bottom numbers to the same value (for example, 0).
Nathan_Hilliard
8 months agoCommunity Member
Regarding your trigger logic, instead of the condition 'if PlayerScore <= Points' I think you want >=. You only want to subtract if there are enough points in the score, otherwise you set the score to zero.
kscaramuzzi
8 months agoCommunity Member
I blame morning brain! You're very correct. I just realized that, so I edited my post to reflect that. But you're right, the value/variable bug is still there. Thank you!!
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago