Problem with moving sprites after placing them.

Get help using Construct 2

Post » Sun Mar 20, 2016 12:06 pm

Hi everyone, I'm using Construct 2 to build a 2D RPG level for a course project and have come across two problems that is holding me up.

1) This problem suddenly started without any reason, when I place a sprite I can't select or move it from its current position.

2) I can't figure out how to set boundaries so the player character can't walk through buildings, walls, plants ect.

Any help would be massively appreciated.
B
4
S
1
Posts: 7
Reputation: 318

Post » Sun Mar 20, 2016 12:31 pm

1. Check to make sure the layer they are on is not set to locked.

2. You will need to either use a solid behavior on objects or build out zones using invisible sprites that act as collision bounds to stop movement.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
68
S
17
G
8
Posts: 637
Reputation: 9,420

Post » Sun Mar 20, 2016 1:11 pm

Thanks Chrisinfinger for your help! Just a follow up question, when I run my layout I can move the character left and right but when I move him up or down he shoots off the screen. Any ideas?
B
4
S
1
Posts: 7
Reputation: 318

Post » Tue Mar 22, 2016 4:35 pm

When you say "shoots off screen" I assume you mean moves off screen?

You can either use bound-to-layout behavior attached to player object if he doesn't need to leave the screen ever.
You can use sprites just off screen (or invisible sprites on screen) that stop movement using solid behavior or an on-collision/overlap event.
You can use math... player.y <> #, stop movement.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
68
S
17
G
8
Posts: 637
Reputation: 9,420


Return to How do I....?

Who is online

Users browsing this forum: divsyntax, volumetv and 17 guests

cron