 Thank you so much.
  Thank you so much. Thank you so much.
  Thank you so much.

 
  I can't say where the bullets are coming from at the moment.
  I can't say where the bullets are coming from at the moment.   
  
 









if (clip != 0)
{
    //Put the create actor code here.
    clip -= 1; //This decreases clip.
} Helped?
 Helped? 
 
 


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); If you need help with understanding this, tell me and I'll help you.
 If you need help with understanding this, tell me and I'll help you. 



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