Random motion of an object, stops, turns, walking

Get help using Construct 2

Post » Thu Mar 28, 2013 7:24 pm

hi, I can not make an object, an enemy for example, to move randomly but following a procedure that would be: walk a little, stop 2 seconds, turn to one side, walk a little, stop 4 seconds, turn to another side .. and so on. Nor do the objects to count the seconds it stops growing, and not globally from the start of the game. Any examples "capx" who can help me?
Posts: 24
Reputation: 774

Post » Thu Mar 28, 2013 8:36 pm

go through the platformer tutorials, they give the basics of having some AI for your enemies, mostly it comes down to either creating functions that get called, or creating invisible sprites, that when they run into them triggers an action. For example if I want my enemies to jump over a gap, I assign them movement using bullet behavior or something else like Platform (simulate arrow keys), and then when they collide with my invisible sprites I have them jump, or do something else...
Posts: 1,833
Reputation: 14,648

Post » Thu Mar 28, 2013 8:43 pm

well maybe not randomly but have you tried mapping out the route that the enemy should be taking and use an invisible sprite to simulate the controls of 8 bit direction with the use of a wait command before the action.

I'm sure some math wizard could tell you specific degree turn and mumble jumble. but yeah id like to know if it possible to have randomly simulated control. I hope this helps

{edit} god dam it i didnt hit refresh you beat me to it. dragoonblade2013-03-28 20:44:20
Posts: 58
Reputation: 2,284

Return to How do I....?

Who is online

Users browsing this forum: Metathronos and 69 guests