when player press the imagebutton of any cloth, it dissapears and add an 1 to count value. i read about IncrementVariable(), added it to my code, and... it doesnt work >_<
here is the code
Code: Select all
#экран с вещами в начале
init -1:
$ clothesCount = 0
screen clothesRoom1():
imagebutton:
activate_sound "audio/sound/activate_button2.mp3"
ypos 0.4
xpos 0.7
idle 'wolf_idle.png'
hover 'wolf_hover.png'
action [Hide('clothesRoom1'), Notify('Вы подобрали трусы с волком'), IncrementVariable("clothesCount", clothesCount+1)]
screen clothesRoom2():
imagebutton:
activate_sound "audio/sound/activate_button2.mp3"
action [Hide('clothesRoom2'), Notify('Вы подобрали носок'), IncrementVariable("clothesCount", clothesCount+1)]
ypos 0.5
xpos 0.5
idle 'nosok_idle.png'
hover 'nosok_hover.png'
error says that IncrementVariable is not defined