Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Problem with scores

Author
Message
Humildadever
13
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 2nd Feb 2019 17:31
hi!





when i


if GetSpriteCollision (bala, inimigo)
//DeleteSprite (bala)
DeleteSprite (inimigo)
score=score+1000
print ("TOC")
fired=0
endif

The score don t actualize ! What i m doing wrong>?

The author of this post has marked a post as an answer.

Go to answer

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd Feb 2019 19:21
This post has been marked by the post author as the answer.
You have to set the value in the text object.
So
SetTextString(1, str(val(GetTextString(1))+1000))

Login to post a reply

Server time is: 2024-04-26 17:15:38
Your offset time is: 2024-04-26 17:15:38