How do I move - (back) without bug?

Get help using Construct 2

Post » Thu Jul 06, 2017 9:30 pm

Hello there! So basically, either there is a huge bugg in C2 or something is wrong here.

''When D button is down''
-If Sprite is mirrored -> Sprite move forward 4 pixels
-If Sprite is NOT mirrored -> Sprite move forward -4 pixels

So. When the sprite moves forward 4 pixels its perfect and it stops at obstacles. However;
when the SPRITE is moving -4 pixels (backwards) It starts climbing up obstacles, what gives?? Bug or? Same thing happens with 'Set position to Sprite.X-2'' - it starts climbing up obstacles like walls....

Anyone?

EDIT Capx for u to try; http://www.filedropper.com/testd
Last edited by Greaver on Thu Jul 06, 2017 11:13 pm, edited 3 times in total.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Thu Jul 06, 2017 10:07 pm

Hi,

1) Based on your description, you have a lot of errors in your design.
In order for anyone to give correction feedback you would need to share your design or at least more details related to movement.

2) In your movement description there is absolutely nothing about climbing as you can see. If you would open a brand new project and put only that event then it will do as described.
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Cheers,
COSMOS
B
21
S
10
G
1
Posts: 85
Reputation: 2,297

Post » Thu Jul 06, 2017 10:44 pm

DolyGamesCosmos wrote:Hi,

1) Based on your description, you have a lot of errors in your design.
In order for anyone to give correction feedback you would need to share your design or at least more details related to movement.

2) In your movement description there is absolutely nothing about climbing as you can see. If you would open a brand new project and put only that event then it will do as described.


No, it will climb. That is the problem. Try it. Keep D down untill u hit a wall.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Thu Jul 06, 2017 11:11 pm

Capx has been added.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Fri Jul 07, 2017 2:09 am

Hi,

Ok, sorry, so I checked and played around with your Capx and this is my feedback:

1) Your Sprite has Platform behavior and when using Arrow keys it behaves correctly (no jumping).

2) If using the D key as per your event the "jumping effect" occurs. I checked all collision lines and tried variations with other solid objects and in all cases the "jumping effect" happened.

My conclusion / advice to you:

I believe this effect happens because you are using the Move Forward action which "teleports" your Sprite 4 pixels into the solid object but since it cannot be inside a solid object there seems to be a push back effect which we see visually as "jumping effect".

To move your sprite you should not use such "teleportation" of X pixels, but you should simply say, if you do not wish to use Arrow Keys, on D key down SIMULATE CONTROL (under Platform) and choose Left if you want it to go left or right if you want it to go right, etc.

Good luck
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Cheers,
COSMOS
B
21
S
10
G
1
Posts: 85
Reputation: 2,297

Post » Fri Jul 07, 2017 12:04 pm

DolyGamesCosmos wrote:Hi,

Ok, sorry, so I checked and played around with your Capx and this is my feedback:

1) Your Sprite has Platform behavior and when using Arrow keys it behaves correctly (no jumping).

2) If using the D key as per your event the "jumping effect" occurs. I checked all collision lines and tried variations with other solid objects and in all cases the "jumping effect" happened.

My conclusion / advice to you:

I believe this effect happens because you are using the Move Forward action which "teleports" your Sprite 4 pixels into the solid object but since it cannot be inside a solid object there seems to be a push back effect which we see visually as "jumping effect".

To move your sprite you should not use such "teleportation" of X pixels, but you should simply say, if you do not wish to use Arrow Keys, on D key down SIMULATE CONTROL (under Platform) and choose Left if you want it to go left or right if you want it to go right, etc.

Good luck


Im using this D for a dash effect. There is no simulate left or right when it comes as an additional option dude.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Fri Jul 07, 2017 1:31 pm

DolyGamesCosmos wrote:Hi,

Ok, sorry, so I checked and played around with your Capx and this is my feedback:

1) Your Sprite has Platform behavior and when using Arrow keys it behaves correctly (no jumping).

2) If using the D key as per your event the "jumping effect" occurs. I checked all collision lines and tried variations with other solid objects and in all cases the "jumping effect" happened.

My conclusion / advice to you:

I believe this effect happens because you are using the Move Forward action which "teleports" your Sprite 4 pixels into the solid object but since it cannot be inside a solid object there seems to be a push back effect which we see visually as "jumping effect".

To move your sprite you should not use such "teleportation" of X pixels, but you should simply say, if you do not wish to use Arrow Keys, on D key down SIMULATE CONTROL (under Platform) and choose Left if you want it to go left or right if you want it to go right, etc.

Good luck


Hello again - bullet has the same effect. Aslong as the character is going left, it will climb over obstacles.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Sat Jul 08, 2017 12:59 am

Hi,

Firstly, I don't understand what you mean that the option is not there. Here is a screenshot proof of me adding it in your file:
http://prntscr.com/ft0tq8

Secondly, it is the first time you are mentioning that you are trying to do a dash move/attack. In this case I can suggest you a solution of using SIMULATE CONTROL together with increased speed for the duration of the dash (e.g. 0.25 seconds).

I am not expert enough to explain or understand the "jumping effect" but the solutions I proposed to you will do what you want without having to deal with or spend more time on trying to figure out this "jumping effect".

Good luck!
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Cheers,
COSMOS
B
21
S
10
G
1
Posts: 85
Reputation: 2,297


Return to How do I....?

Who is online

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