I can't seem to figure this out. I'm trying to place a grass sprite that contains three "levels" of grass. It's all for effect, non-interactive graphics. I do it this way:
*************
System, On start of layout: Function, Call "PlaceGrass"()
Function, On "PlaceGrass"
--System, Repeat 600 times: System, Create object Sprite on layer 0 at (random(0,WindowWidth),random(0,WindowHeight))
Sprite, On created: Sprite, Set animation frame to random(0,2)
**************
Yet when I run the code it sets the grass sprite like I want, but the frames are all the same. Could anyone help me out with this? Thank you in advance.