Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Which approach is the best:
Also how can I destroy blocks like in Mario?
Just use sine behavior for the enemy.
for the blocks:
player on collision with blocks
player x less than blocks x ------------------- blocks - destroy.
I tried sine - but it is good only for objects with "neutral" look (i.e. some spikes);
because it does not "mirror" image when going left/right
I tried also bullet behavior, but it can fly when bounced off some object
look at move an enemy on this page from the tutorial section
https://www.scirra.com/tutorials/253/ho ... ame/page-7
Develop games in your browser. Powerful, performant & highly capable.
I have heard that platformer behavior can slow-down game if many enemies uses it,
but yeah, it seems to be the best option anyway
— well you can move it differently using set x or whatever you prefer just replace that action, but that tutorial is a good building block for what you are asking
ok, it's working Now I try to get this effect when you touch enemy and you loose energy
and the enemy is going forward anyway... so I set up disable solid for 2 second after loosing energy (so enemy have 2 seconds to move through player) and then enable solid again
Are you asking how to do that or saying thats what your doing?
I went off-topic
ok, case closed
Thanks for help
I'm using sine for enemy in my game:
http://www.scirra.com/arcade/addicting- ... 7795/dario
Test it and if you want the capx i will send it to you.
Hey! A0Nasser, how did you make that the enemy turn mirrored at the end of the sine? thanks
You can download the full capx, And ask me if you want any other help.
As I do if I want to mirror two enemies with random magnitude and period, and try but the two are turned at the same time. Please help.