Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ryandebraal

#1
I am Trying to create a "bullet splash" where when I click somewhere on the screen a little "explosion" goes off.

Currently, each Room has an Object in it that contains the sprite, and when I click it plays the sprite.

Is it possible to dynamically create this object on the fly, play it's animation once and then dispose of it?

Here is my current implementation being executed continuously in function room_RepExec() :

Code: AGS

function CheckGunFire() {
     
//Check for GunFire
     if(Mouse.IsButtonDown(eMouseLeft) && Mouse.Mode == eModeReticle && intAmmo >= 1) {
          
      bulletspark.SetPosition(mouse.x - 14,  mouse.y + 18);
      bulletspark.SetView(4);
      bulletspark.Animate(0, 0, eOnce, eNoBlock, eForwards);
      bulletspark.Visible = true;
     }      
}
       
#2
I don't know why I can't find this in Search or on Google.

I can to convert an int to a String.

I've looekd in documentation, and I see you can convert String to int with .AsInt - but there doesn't seem to be a matching function to do it in the other direction

COuld someone clue me in please?
SMF spam blocked by CleanTalk