moving a sprite horizontal or vertical

Get help using Construct 2

Post » Mon Oct 28, 2013 6:48 pm


I am trying to move a sprite horizontally down 10 pixels when I press Down on the keyboard....

I found a way to make it go fall ten pixels when I press down but never got it to just do 10 pixels once and stay there..im trying to get it to stay at the 10 pixel mark.....


B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 6:50 pm

im trying to get the squirrel to flip and look like he is hanging from the tree platforms and then id need to be able to Press Up and reset it back to normal...but then up is also my jump as well..so that all sounds tricky
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 6:55 pm

for the up arrow to work you only have to add a condition is flipped.

so on up arrow pressed
- player is not flipped - jump

- player is flipped - set player back to normal
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 28, 2013 7:33 pm

well now I am all confused. Im trying to use this change state variable thing...because I only want this squirrel to be able to flip when its ontop of the branches(platforms) and when its not it should not be able to continue moving...right now I get it to flip but i can easily move off of my collision of the platform and im flying.... ill post the capx
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 7:37 pm

http://www.dwbailey.com/images/squirrelClimber.capx
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 7:37 pm

lines 20--26
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 9:18 pm

i almost have it....maybe another hour of thinking through it, I should have it working..ill post the capx when I do.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 9:54 pm

http://www.dwbailey.com/images/almostthere.capx
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 10:25 pm

http://www.dwbailey.com/images/UpsideDownSquirrel/
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 28, 2013 10:27 pm

you can use that link to play it....i really need to figure out how to either block my squirrel when he is upside down...and only when
right now he cna just move in either direction...
B
9
S
2
Posts: 272
Reputation: 1,632

Next

Return to How do I....?

Who is online

Users browsing this forum: diamantico21, ratboy3, TRMG and 39 guests