Step 1: Create Enemy objects on mouse click
For the purpose of this tutorial, Enemy objects will be created simply by clicking the screen. Left clicking will create an Enemy facing right and right clicking will create an Enemy facing left.- User clicks with left button
: Create
at (0,0) layer 1
: Set X Float to XMouse
: Set Y position to YMouse
: Set Direction to "Right"
- User clicks with Right button
: Create
at (0,0) layer 1
: Set X Float to XMouse
: Set Y position to YMouse
: Set Direction to "Left"

If you test the application you will notice that wherever you click, the Enemy the X position is 0. This is because at this point, X Float is a plain old alterable value that means nothing.
4