• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Reversing ds_list order

A

Alan Régis

Guest
I am working on a RPG character sheet and a have this section which shows the character skills.
Every new entry shows on a list in order of creation (the last entry shows at the top of the list). I need it to be reversed (the last entry shows at the bottom of the list). How can i do that?

Here's my code:

Code:
if instance_exists(obj_ficha)
{
    for (i=1; i < global.skill_counter +1; i++)
    {
        ds_list_find_value (dsSkillValue, ds_list_size(dsSkillValue)+1*i); // Search for the entry in ds_list
        draw_sprite(spr_skill_value, 0 ,obj_ficha.x+470,obj_ficha.y+340+i*19); // Draw Dots equal to the skill value.
    }
}
 
A

Alan Régis

Guest
Nevermind... i've already figured out how to achieve what i wanted.
 
Top