This is a test example repo for PokeDot
- Just copy the
Resourcesfolder,PokeDotClient.gd, andPokeDotClient.tscninto the new Godot project directory. - The
request_completedsignal must be emitted first in order to get the data, but here getting the data returns empty values as it is called in ready() and as such not completed yet. So in order to get the values after completing the request:
- Call the method first e.g.
get_ability(1) - Wait till it's request is completed -
await pokeapi.request_completed - Then you can access its (
PokeDotClient) child nodeAbility.gd, and call itsget_data():pokeapi.ability.get_data() - The values can now be used as needed:
Note
The actual PokeDot repo has its PokeDotClient.gd call get_pokemon_pagination() when ready(), so if not needed (most likely) disable or remove it first. It's there by default so anyone could test it right away if it works.