Ghost Wall

Get help using Construct 2

Post » Tue Feb 21, 2012 7:01 am

Sprite Behaviors: Bound by Layout & Solid
Block Behavior: Solid

I set the sprite's position to (Mouse.X, Mouse.Y) because I want the sprite to move purely by using the mouse. There's a specific area that I do not want the sprite to pass through, however, I cannot figure out how to prevent this from happening.

I tried to use this procedure even though it's for Construct Classic, and it worked somewhat until I realized that if I set my mouse pointer in the center area of the block, the sprite passes through the wall with ease.

Here's a small .capx as an example of my issue. Please & thank you!

&Solved! (Removed the .capx file)Tokki2012-02-28 23:50:30
B
13
S
4
G
6
Posts: 16
Reputation: 3,527

Post » Tue Feb 21, 2012 9:02 am

Hi, try this if this works for you.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Tue Feb 21, 2012 9:35 am

Thanks for helping out this noob! ;D

I wish I could understand how the equation works. ;(

What does adding an event without a condition do?Tokki2012-02-21 10:06:44
B
13
S
4
G
6
Posts: 16
Reputation: 3,527

Post » Tue Feb 21, 2012 10:28 am

Without any condition, the event will just be executed every ticks.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Tue Feb 21, 2012 10:42 am

Ohh, okay! Thanks!
B
13
S
4
G
6
Posts: 16
Reputation: 3,527


Return to How do I....?

Who is online

Users browsing this forum: Scofano and 15 guests