
if (clip != 0)
{
//Put the create actor code here.
clip -= 1; //This decreases clip.
}
Lacotemale wrote:Yes I wasn't sure if clip should be clip-- or clip-1 but it was actually clip-=![]()
Lacotemale wrote:Now I have a more complicated problem... I want my player to changeanimation if the aimer is on the left or on the right of him. Can this be done in GE?
if (x < aimer.x)
{
//Put here the animation changing for facing right
}
if (x > aimer.x)
{
//Put here the animation changing for facing left
}
Lacotemale wrote:Also is there a way to show a variable on screen? Like an actor that shows the variable on it.
sprintf(text, "%i, %d, %s", number, number2, sometext);
sprintf(text, "%i", clip);
[show actor].textNumber = clip;
Make sure to have the code in text actor. (Actor that has text, no animations.)Lacotemale wrote:I put this in the draw actor script:
- Code: Select all
sprintf(text, "%i", clip);
Is this correct? I want it to show the integer "clip".
Users browsing this forum: No registered users and 1 guest