Author Topic: Making Title Screen Show Stats For Saves?  (Read 2325 times)

GalacticHooloovoo

  • Wannabe
  • Posts: 11
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
  • Playstyle: Keyboard
Making Title Screen Show Stats For Saves?
« on: July 10, 2015, 12:55:38 PM »
Hello!

I've been trying to make fangames for a couple weeks now, but I cannot figure out how to make the title screen show the stats (such as death count and time) under the save file, like a lot of other fangames do.

If anyone's wondering, yes I am a noob when it comes to programming, so please don't be mean to me!  :denRin:

Thanks!

Kyir

  • The Kid
  • Posts: 293
  • Normal Guy
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #1 on: July 10, 2015, 10:14:22 PM »
I don't remember the variable names, but look in the script for saving for whatever is tracking deaths and time, and then use draw code to create it at an appropriate place on the loading screen.

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #2 on: July 11, 2015, 12:46:52 AM »
What engine are you using? Most (if not all) should be displaying the stats on the file select screen for you already. Like Kyir says, the variables you're looking for will look something like global.death[j] and global.time[j], where j is 1,2 or 3 depending on which save file you want to look at. Check for a titleButton object, or a menuSelect object, and you should see those variables being populated in the create event. If you give us some more detail we can help pinpoint what you need!

pieceofcheese87

  • Global Moderator
  • The Kid
  • Posts: 346
  • Personal Text
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
    • Twitch Tv Channel
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #3 on: July 11, 2015, 06:21:06 AM »
I've come across this problem a lot when downloading japanese engines (and decompiling games)

If you have the same problem as I think you're having, try opening up the "Fonts" folder in game maker and double clicking/confirming all the fonts in there.
Signature

BaronBlade

  • Spike Dodger
  • Posts: 140
  • bees?
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.134 Chrome 43.0.2357.134
    • View Profile
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #4 on: August 15, 2015, 12:49:04 AM »
Sorry if this is necroposting, but I'm having this problem as well. I tried to play the default map, but the fonts didn't show up there either, even for the avoidance timer. All of the fonts called exist in the folder and seem to be set up properly, so I have no clue what's wrong.
bean!

lawatson

  • The Kid
  • Posts: 331
  • I do things and I make things.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 44.0.2403.155 Chrome 44.0.2403.155
    • View Profile
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #5 on: August 15, 2015, 01:49:26 AM »
I think that the fix is simply redefining the fonts, as maybe they're seen as undefined by the game if left unchanged. Just mess around and click something for each font and it should work.
(click to show/hide)

smoke weed everyday

BaronBlade

  • Spike Dodger
  • Posts: 140
  • bees?
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.134 Chrome 43.0.2357.134
    • View Profile
  • Playstyle: Keyboard
Re: Making Title Screen Show Stats For Saves?
« Reply #6 on: August 15, 2015, 07:51:09 PM »
I tried this, but the fonts still won't show up.  :atkCry: I honestly have no clue why it's not working.
EDIT: I'm using Yuuutu engine, btw
« Last Edit: August 15, 2015, 08:15:42 PM by BaronBlade »
bean!