Fangames > Programming Questions

show step counter

(1/2) > >>

Taprus:
So im making an avoidance, and to make stuff easier to myself i decided that i should have an object that shows the step counter(or step "blocks" idunno) of the timeline. Thing is, even after trying a lot of stuff, it still hasnt worked. Can anyone help me please?

Sudnep:
Create an object > Draw Event


--- Code: ---draw_set_alpha(1);
draw_set_color(c_black);
draw_text(x,y,boss.STEPCOUNTER);

--- End code ---

Will draw the text wherever you place this object. Varies depending on h/v text alignment.
Obviously replace "boss" with whatever object the counter is running in and "STEPCOUNTER" with whatever your counter is called.

Taprus:

I think i did something wrong...

Sudnep:
The object you created is called stepshower.
The variable you're trying to reference from objAvoidance is called stepshower.
Make the object stepshower unique by changing the name to objStepshower?

Taprus:
I dont understand, what is supposed to be the variable from the boss?

Navigation

[0] Message Index

[#] Next page

Go to full version