Here's a really basic example of how to make enemies with platform behavior-
http://dl.dropbox.com/u/5811650/Help%20Files/Plat_enemyAI.cap
Instructions: Move the cursor near the enemy.
Develop games in your browser. Powerful, performant & highly capable.