![]() ![]() This means (i) the variable can only be changed by scripts in the same sprite, (ii) the variable name does not needlessly clutter the variable pane of other sprites, and (iii) the same variable name may be used in other sprites without causing conflicts. ![]() It was set as a local variable by checking the option "For this sprite only" in the creation dialog. "X velocity" stores a value representing the sprite's horizontal speed.Sprites that are animated by lots of costume changes are even more tricky, as a changing costume might get pulled inside the ground and get stuck.īelow is an example of a simple script for a platformer sprite. For example, a character shouldn't be saved from a fall because the brim of her hat snagged on the edge of a cliff. Its appearance can affect gameplay slightly, depending on the angles and size of its Costumes. The platformer sprite is the avatar controlled by the player. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |