Make a similar mechanic as in "Pokemon Ranger"

Get help using Construct 2

Post » Sat Feb 18, 2017 4:53 pm

Hello!

I am working on a game right now where you can tame animals and want to add something similar as the catching mechanic in Pokemon Ranger.

You basically have to draw a circle (or multiple) around the targets to tame it, but how can I make that Construct 2 will know when the circle is drawn and if the animal is inside that circle? Do you have any ideas?
B
13
S
2
Posts: 79
Reputation: 819

Post » Sat Feb 18, 2017 6:14 pm

Hmmm?

You could use the X and Y coordinates of where you start drawing the circle and check if the circle is complete when mouse or tap X and Y is within a certain range of that start X and Y

You can check the animal sprite image point to see if it is with in the circle.

How are you drawing the circle or is it a circle sprite?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sat Feb 18, 2017 6:42 pm

@lamar

I wanted to draw it something like

While Left Mouse is down
-> spawn small circle every tick

So it looks like that you are drawing.
B
13
S
2
Posts: 79
Reputation: 819

Post » Sat Feb 18, 2017 7:29 pm

13spongg13 wrote:@lamar

I wanted to draw it something like

While Left Mouse is down
-> spawn small circle every tick

So it looks like that you are drawing.


OK give me a little while and I will have a CAPX for you.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sat Feb 18, 2017 8:38 pm

OK here is what I come up with and hope it works for you.

CAPX:

https://www.dropbox.com/s/yt9zhr4286swp9p/Lion%20Catch.capx?dl=0

Image

That creates a circle that you must place around the moving lion (red box). If you capture the lion it stops and text says lion captured. Right click to release lion and left click to set cage.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sat Feb 18, 2017 8:54 pm

@lamar

Thank you for your help! That was one of my second thoughts since I don't know how to implement a self-drawn circle. (which would be more interactive I think)

I guess I am going to stick something like this and see what it will look like!
B
13
S
2
Posts: 79
Reputation: 819

Post » Sat Feb 18, 2017 8:58 pm

13spongg13 wrote:@lamar

Thank you for your help! That was one of my second thoughts since I don't know how to implement a self-drawn circle. (which would be more interactive I think)

I guess I am going to stick something like this and see what it will look like!


You are welcome!

You can draw a circle but it gets complicated so the sprite circle is easier I think. You can break that sprite into smaller pieces if you want to smooth out the drawing and I just used 4 pieces.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 19, 2017 9:09 am

Hi there!

I've made up a capx that may help ;D
It's a system which can draw (and detect when it's drawn) a circle around a target.

https://www.dropbox.com/s/n8z4qfjddczpdo5/CatchthePenguin.capx?dl=0

Hope this helps!
B
8
S
3
G
3
Posts: 10
Reputation: 2,116

Post » Sun Feb 19, 2017 10:13 am

I see this topic is populated with examples, while i amused myself with trying this my self.
Tried to 'copy' that Pokemon Ranger mechanic.

Probably not needed, showing off anywayz:
https://www.dropbox.com/s/2e64h1l1m27rb ... .capx?dl=0

Have fun.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sun Feb 19, 2017 10:22 am

99Instances2Go wrote:I see this topic is populated with examples, while i amused myself with trying this my self.
Tried to 'copy' that Pokemon Ranger mechanic.

Probably not needed, showing off anywayz:
https://www.dropbox.com/s/2e64h1l1m27rb ... .capx?dl=0

Have fun.


LOL- yeah that is the same reason I did it. Looked like a challenge and something I had not tried before. May come in useful later.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Next

Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, namaewayukidesu, nirwan1911, Yahoo [Bot] and 7 guests