Collision issue and some overlapping problems

For questions about using Classic.

Post » Fri Apr 26, 2013 4:16 am

So here are my two problems, I cannot get my enemy objects to stop when they come in contact with my wall objects, yet my player object does. and then I cant get construct to recognize the order of objects for some reason, making corpse objects appear on the top layer. Here is my cap file if you want to take a look at it. Thankyou for your consideration.
Posts: 33
Reputation: 1,016

Post » Tue May 14, 2013 11:04 pm

I've looked into it. Well, for starters - you made your enemies ALWAYS (event #7) have the speed of 80, so even if they collide with something, they will instantly gain the speed of 80. :)
Try using something else, for example:
1. if ENEMY is NOT colliding with obstacle AND ENEMY speed < 80 - set ENEMY speed = 80
2. if ENEMY collides with obstacle AND ENEMY speed >= 80 - set speed to 5 / bounce / something else

The problem is that every each second (or tick) the program makes your monsters have the speed of 80, so collisions don't work.bitworks2013-05-14 23:10:24
Posts: 28
Reputation: 435

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests