# Need help to make character movement similar to Jumpy Nuts

Discussion and feedback on Construct 2

### » Tue Sep 27, 2016 4:21 pm

Hi, I am new to Construct 2.
I want to create a game similar to Jumpy Nuts(by ketchapp). I started with the project but don't know how to make the character's movement as same as the Jumpy Nuts.
B
2
Posts: 2
Reputation: 154

### » Wed Sep 28, 2016 12:08 pm

Hi, if you'd give us a link of that game you are referring to, that's be very helpful.
I can't find it on the web.

Or if you would describe the movement needed.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

### » Wed Sep 28, 2016 1:01 pm

Here is the link : https://play.google.com/store/apps/deta ... p.jumpnuts
I like to have the same movement.
Thanks
B
2
Posts: 2
Reputation: 154

### » Wed Sep 28, 2016 2:02 pm

You can use the bullet behaviour with gravity to get that kind of movement. The character sticks to the ball and rotates. When you click the character with bullet behaviour should move in the angle of the rotating platform. I hope thats enough to get you started. Play around with it.
or in this thread Archer Devlog
B
49
S
22
G
19
Posts: 1,135
Reputation: 14,812

### » Thu Sep 29, 2016 5:49 pm

@tunepunk @mrinmoysd
Yeah that's the way, I'd do it too.

When you click, your player is given a speed by an action and set loose from the ball, making him fly towards the next ball in a physically correct way (caused by the bullet behaviour).

As soon as he touches the next ball, the coordinates are being saved. The angle of the ball would then have to be switched towards the player (to be able to calculate his position on the ball).
his position can then be calculated like so:
x position: ball.x (make hit-spot -> center) + ball.radius*(cos(ball.angle)) | you'll have to calculate the radius from the size of the sprite.

y position would be similar, just with sinus.

I hope we could help you, if you need any more help, just write us.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

### » Fri Sep 30, 2016 2:27 pm

Here's an example I created on how you could do it.
The version is very buggy but I think it demonstrates well how you could do it.

https://www.dropbox.com/s/ynca7s7w74vkf22/JumpNuts.capx?dl=1
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

### » Fri Sep 30, 2016 11:00 pm

I was also intrigued with this simple yet clever mechanic. Here's my take:
http://www.blackhornettechnologies.com/ ... t_BHT.capx
Last edited by blackhornet on Sat Oct 01, 2016 6:00 pm, edited 1 time in total.
B
72
S
22
G
288
Posts: 3,862
Reputation: 158,460

### » Sat Oct 01, 2016 4:17 pm

@blackhornet
That link doesn't work for me..
Though your page is quite interesting..
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

### » Sat Oct 01, 2016 6:01 pm

I'm not sure what's going on. Sometimes the page errors-out, and sometimes it's fine. In Chrome at least, the file still downloads correctly. I've renamed the file, should that make a difference.
B
72
S
22
G
288
Posts: 3,862
Reputation: 158,460

### » Sun Oct 02, 2016 5:42 pm

@blackhornet
That's a nice implementation, well done. Way smoother than mine.

@mrinmoysd
I guess you have enough examples to start off on your own now, huh? :)
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091