My Solid Monster can move on the solid wall

Get help using Construct 2

Post » Sat Sep 01, 2012 11:36 pm

Hi All :)

Before to tell my little problems I'm just saying i'm beginner.

So... I say Thanks if you try to help me.




This is my problem...

I don't wont the monster can move on the wall but i've try all for me but...

In the image you can see the Behaviors and the Layers.

Sorry for this stupid question but i hope can you help me

Please can you help a little noob?
Tnks :)
B
3
S
1
Posts: 5
Reputation: 487

Post » Sun Sep 02, 2012 4:53 am

Not a stupid question! You don't need the solid behavior on your monster, just on the wall. Now on the bullet behavior on your monster, there is a parameter "Bounce off solids" that you should make "Yes".
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Sun Sep 02, 2012 12:29 pm

Thank you very much!

But now i've one other problem sorry...

The question is... the monsters are only a bullets how can they be a little bit more intelligent? xD



Sorry for my problems... and thanks for your help
B
3
S
1
Posts: 5
Reputation: 487

Post » Sun Sep 02, 2012 6:39 pm

I hoped you were going to ask that question! Instead of using bullet, you can use the same 8direction behavior that you use on the player object. You just need to turn off the default controls and manage it yourself using collisions with walls and other things.

For example, in the example you show, when the monster hits a wall, add 90 degrees to the monster's angle to help turn him around.

Here's a quick example I threw together. There is much more you can do. In addition to managing the collision with the walls, this one has some controller objects that turn the monster left, right, up, down, pause, slow down and speed up. During the deployed game, turn the visiblility for the controllers layer to invisible and no one will know what is making the monsters behave the way they are.

8directionPatrol.capx

This is based on some of the great platformer patrolling examples out there, like JohnnySix's patrolling example in the arcade. Of course, his is very polished, while this one was thrown together in under an hour.
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Sun Sep 02, 2012 7:20 pm

Oh more interesting ;)

Thank you very very much! Now i've end my question.

Thank you for the support
B
3
S
1
Posts: 5
Reputation: 487

Post » Thu Jan 24, 2013 2:59 pm

Hi All,

Im trying out my very first game (am a total noob!). It's a maze game with a monster chasing the hero around. Not very original I know...

I tried implementing the waypoints as per the previous post(I have tweaked my events though so that the hero leaves a trail of waypoints for the monster, also the monster will follow the waypoints angle rather than random turn) but for some reason my monster will not turn (just goes right). My capx below:

https://www.dropbox.com/s/3tlgud5xm9fwu7o/Maze%20tester.capx

I think what I'm asking help with is why isnt the waypoints triggering the appropriate simulated keyboard action! (I think!)Many many thanks for any help with this!

Btw. Im using this method of waypoints at intersections because I'm hoping to avoid using the bounce setting. with my test, it seems that the monster- even though a square box- will bounce off the walls at funny angles! Any light on this??
B
10
S
2
Posts: 15
Reputation: 1,041


Return to How do I....?

Who is online

Users browsing this forum: mallorcaredes, ultrafop and 2 guests