• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Drawing a sprite that is always on top.

Slime

Active Member
Joined
Jan 25, 2014
Messages
115
Reaction score
32
I want to draw a cursor on the monster that player is currently attacking, instead of default red square. If a sprite is bigger than 32x32 it covers the cursor. Wat do?
C++:
    if(m_showStaticSquare && animate) {
        
            auto datType = g_things.rawGetThingType(159, ThingCategoryItem);
            Point arrowDest = dest;
            arrowDest.y -= 32;
            datType->draw(arrowDest + (animationOffset - getDisplacement() + 2), scaleFactor, 0, 0, 0, 0, 0, lightView);
        g_painter->setColor(Color::white);
    }
 
solved, cursor code had to be placed after creature drawing code
 
Back
Top