Restrict Mouse Movement

Get help using Construct 2

Post » Sun Jun 24, 2012 6:23 pm

Hello, I'm new to C2 and game making world. Now, I'm trying to make something like Space Invaders but I want to use mouse to move player ship.

I cannot figure out how to restrict mouse movement to just only left and right. I figure I can use some kind of collision detection, but it doesn't work.

I've been searching on forum and tutorial and can't seem find anything (although, if I miss anything I would be grateful if somebody can share the link )

Here's the capx of what I'm trying so far :
https://dl.dropbox.com/u/60994208/Construct/ShipAttack.capxohmijan2012-06-24 18:25:10
B
3
Posts: 2
Reputation: 354

Post » Sun Jun 24, 2012 6:50 pm

Just use 'Set X' instead of 'Set position', like this:

ShipAttack_Edited.capx (r95)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jun 24, 2012 6:58 pm

[QUOTE=Nimtrix] Just use 'Set X' instead of 'Set position', like this:

ShipAttack_Edited.capx (r95)[/QUOTE]

Ooh, I see now. Thank you so much , Nimtrix
B
3
Posts: 2
Reputation: 354


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests