How can I move monster like mario‘s monster which can walk left and right ?
One option would be to give it a bullet behavior and then change angle of motion by 180 when it collides with an obstacle.
Of course, it is just a start. Jumping and falling will need additional actions.
Develop games in your browser. Powerful, performant & highly capable.
Thanks razor, but can you write steps of events and action
Do you have some capx where you would like me to add that? I believe it would be pointless here to create that from scratch.
There are numerous examples of this in both the tutorials, and the 'How Do I FAQ' sections. There are even specific examples for mario.
In the 'How Do I' FAQ, search for 'enemy' and you'll find lots of useful stuff of enemy patrolling behavior.