1 year ago

[OLD, READ ARTICLE FOR NEW] an idiots guide on how to add trophies and setup game api in your turbowarp game (read article for guide)


This is old, click here for the slightly improved one

gamejolt api
custom reporters (optional if you want the game to be easily able to detect if a trophy is unlocked or not)

first off go to the game page, gear icon thing at the top, game api then api settings

the private key is there but DO NOT SHARE IT WITH ANYONE, ESPECIALLY THE PUBLIC. so just hit show key, then follow this example just replacing the variables with the actual id and key

screenshot_2023-10-07_230314.png

now you have to make login screen (you probably may have already created the message for that)

an example one

screenshot_2023-10-07_230056.png

now that you made the login screen + logged into your account in the project, you wont be logged out of your account next time you smash the green flag. but it only logs you out by itself when you close the packaged version of [your game here].

ok its focus-on-trophies time. using my game PASTA for screenshots. (the trophies may not make it to the game, or will they?)

k now go here in your game's settings (if you dont have a game on here, simply go to gamejolt's usual page you start on, look for something that says "manage games", hit the plus then do some stuff)

screenshot_2023-10-07_230937.png

if you scroll down and look at all types of trophies you can have in your game, you might say its similar to playstation (it kinda is)

so add a bronze trophy and it should be simple :)

now you will see an id on the trophy item of the list. that will be VERY important if you want the player to be able to get it.

screenshot_2023-10-07_231445.png

ok now let me introduce you to these blocks (you might already know what the first two do)

screenshot_2023-10-07_231714.png

and yes the first one is hyper important for trophies.

so if you put this block on the bottom of the login script you should get the trophy for logging in (or being logged in if you are still logged in)

screenshot_2023-10-07_232025.png

as some of you guys know (if you ever touched a playstation 3 or later) the most common trophy is "All done" (the trophy's name from stray) on platinum and you get it for collecting every other trophy. i think you can do that on here as well

-=BONUS PART=-
to easily detect if the trophy (fetched using its id) is unlocked or not you need the "Custom Reporters" extension and that is simpler than the simplest full game ever

all you need to code, it takes only one smol script lol

screenshot_2023-10-07_232349.png

and yeah there you go



3 comments

Loading...

Next up

why in there

peter predicted pizza tower

have you ever got that one moment where you use the eraser and

everyone knows you jump with cross right

I made gumball a vector

that cat looks familiar with the blackness

(hes ded rn unfortunately)

i had to repost

(also can we stop doing the repost stuff)

WHAT THE ACTUAL SHIT [haredares mother]