Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
ShadowHunter wrote:Great tutorial Candle
Writing scores to an ini file or to the registery in case more players play the game would complete this tutorial
Kind regards,
ShAdOwHuNtEr
Taretia wrote:hey!!
Is there a way to display a hotspot only if the score is lets say 10?? I mean the hotspot becomes visible when you gain your 10th point and disappears when you gain more...
Candle wrote:Taretia wrote:hey!!
Is there a way to display a hotspot only if the score is lets say 10?? I mean the hotspot becomes visible when you gain your 10th point and disappears when you gain more...
yes, just use the variables to do it .
If score=10 Then
scoreequaltoten=1
else
scoreequaltoten=0
End If
If score =10 then
Hotspot(the number of your hotspot goes here).enabled=False
else
Hotspot(the number of your hotspot goes here).enabled=True
End If
Lyberodoggy wrote:I didn't really get the last one, but if I understood it correctly, the tutorial above should help you.
Anyway, as ShAdOwHuNtEr says, when coding, the sky is the limit, so you can make the hotspot appear in many different ways.
First way (using a boolean variable):
Create two integer variables. One named score and one named scoreequaltoten. Then use the score variable to save the user's score.
Go to your hotspot, make it visible only if scoreequaltoten=1. Then use this line of code to make scoreequaltoten=1:
- Code: Select all
If score=10 Then
scoreequaltoten=1
else
scoreequaltoten=0
End If
Second way (using only the score variable):
Create just an integer variable named score.
Go to the frame's properties, under advanced type:
- Code: Select all
If score =10 then
Hotspot(the number of your hotspot goes here).enabled=False
else
Hotspot(the number of your hotspot goes here).enabled=True
End If
etc...
Hope it helped...
chickens1127 wrote:Can I do this with the free version???
Return to Post Your Own Tutorials
Users browsing this forum: No registered users and 0 guests