Wait (0.1) secs // change to amount of seconds between each shot When I start as a clone // in projectile spriteĪutomatic when gf clicked // in player sprite Semi-Automatic when gf clicked // in player spriteĬreate clone of (bullet v) // clones the projectile sprite Once again, both a player sprite and a projectile sprite are needed. This method is similar to the one above, only it incorporates cloning to allow for more than one bullet on the screen at once. Wait (0.1) secs // does not wait for the trigger to be released change to amount of seconds between each shot This script allows the player to simply hold the trigger button for continuous fire: Repeat until or > //moves the sprite until it is touching something that will make it go away Go to (The player v) //start at the player When I receive //in the projectile sprite Wait until or > // the player can only shoot once at a time When gf clicked // in the player's character sprite This script requires the player to release the trigger button before firing again. These scripts require two sprites a player sprite and a projectile sprite. 5 Shooting Projectiles with Trajectories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |