How do I

Get help using Construct 2

Post » Thu Jan 07, 2016 9:43 pm

Hi everyone (excuse me, i am Belgian and i have a very very bad english :? )

You can try the game for understand my problem : monkeywu.netai.net/ (select the first world please)

The code :

Image

For the jumpstrenght it's okay. Now, How Can I do to move my character during his jump ?

Thanks. :P
Last edited by MrWu on Fri Jan 08, 2016 8:44 am, edited 4 times in total.
B
3
Posts: 3
Reputation: 181

Post » Thu Jan 07, 2016 11:56 pm

could you try to explain better? also, your link got removed.
B
6
S
1
Posts: 39
Reputation: 486

Post » Fri Jan 08, 2016 12:20 am

he wants to shoot while his player is jumping. (missing the rest of the code. what fires the arrow? as how is it attached to the player? to many ?'s) and not any details to support them.)
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Fri Jan 08, 2016 8:42 am

Hello, thank you for taking the time to help me.

My problem is that by touching the screen or by clicking on a power arrow appears .

This allows me to determine the power of the jump via frames.

But how to simulate a shift to the left or right depending on the angle ?

PS : The Arrow is simply attached to the player.

Website link is update sorry !

Thank you for trying to read me !
B
3
Posts: 3
Reputation: 181

Post » Fri Jan 08, 2016 10:26 am

As you are using the platform behavior, you can simulate controls right/left in an event platform is NOT on floor (same condition as your event 14 that you right click/Invert).

For the direction in which to go to, make an instance variable "Direction" to your object "joueur". When direction is 0, it means you want to go right, when it is 1 it means you want to go left.
Those will be subevents of the event mentioned previously.

To determine whether "Direction" is 0 or 1, you can place an imagepoint at the end of your "power" arrow and check its X position in relation to the monkey X position on touch end.
If the X of the arrow is greater then the X of the monkey, it means the player is orienting the arrow to the right, so "Direction" should be 0.
If the X of the arrow is lower than the X of the monkey, it means the player is orienting the arrow to the left, so "Direction" should be 1.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,100

Post » Fri Jan 08, 2016 5:28 pm

Thanks for your help ! It's done ! :)
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: SneakyHands and 4 guests