vb6 code for total trophies

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

vb6 code for total trophies

Postby insaneproject » Sat Dec 08, 2012 11:53 am

if I want to display the total trophies found also see a picture or another depending on trophies won?

ep:
Total trophies level: 6 Earned: 3 (image with the purchase of trophies won> 3 bronze.gif,> 5 plata.gif <5 oro.gif
Image
HERE MY WEBSITE AND MY GAMES! CLICK HERE:http://magva-productions.es.tl/
User avatar
insaneproject
Advanced Member
 
Posts: 193
Joined: Mon Apr 16, 2012 9:54 am
Location: SPAIN

Re: vb6 code for total trophies

Postby insaneproject » Wed Dec 12, 2012 12:02 am

please help meeeeeeeeee
Image
HERE MY WEBSITE AND MY GAMES! CLICK HERE:http://magva-productions.es.tl/
User avatar
insaneproject
Advanced Member
 
Posts: 193
Joined: Mon Apr 16, 2012 9:54 am
Location: SPAIN

Re: vb6 code for total trophies

Postby Lyberodoggy » Wed Jan 23, 2013 7:51 pm

In the advanced tab of the frame properties,
assuming you have a variable named trophies_found,
use this code:

Code: Select all
pic=""
if trophies_found > 5 then
pic="plata.gif"
elseif trophies_found > 3 then
pic="oro.gif"
elseif trophies_found = 3 then
pic="bronze.gif"

Action.LoadAPicture Hotspot(1), pic


change 1 in Hotspot() to match the hotspot you want the picture in.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Re: vb6 code for total trophies

Postby insaneproject » Tue Jan 29, 2013 4:08 pm

I have a frame in which I get the total trophies and next I want to put the image of the trophy given in terms of trophies won, that's where I put the hotspot?

advanced thx
Image
HERE MY WEBSITE AND MY GAMES! CLICK HERE:http://magva-productions.es.tl/
User avatar
insaneproject
Advanced Member
 
Posts: 193
Joined: Mon Apr 16, 2012 9:54 am
Location: SPAIN

Re: vb6 code for total trophies

Postby Lyberodoggy » Thu Jan 31, 2013 2:08 am

The hotspot will be the holder of the picture you will display, so it should be in the frame you want the trophy picture.
The code should be in the frame properties, not in the hotspot.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron