Help on Logic

Get help using Construct 2

Post » Fri Mar 14, 2014 1:20 am

Hello again guys =)
Will you help me think?

I'm developing this board game where the board is way too big to fit on the screen, so I made it "click and dragable" so the player can move the board and see everything on it.
But the thing here is, the board moves, the pieces doesn't and this mess up everything.

Do you have any idea how can I make a sprite relate it's position to another sprite position or anything like that?

I'm attaching the .capx so you can have a look at what I'm talking about.

Grateful since now o/
You do not have the required permissions to view the files attached to this post.
B
17
S
7
Posts: 277
Reputation: 2,514

Post » Fri Mar 14, 2014 1:48 am

You should be able to do it with a pin behaviour, If you enable it every time the player drag the board and disable it again when they don't.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Fri Mar 14, 2014 1:53 am

RayKi wrote:Hello again guys =)
Will you help me think?

I'm developing this board game where the board is way too big to fit on the screen, so I made it "click and dragable" so the player can move the board and see everything on it.
But the thing here is, the board moves, the pieces doesn't and this mess up everything.

Do you have any idea how can I make a sprite relate it's position to another sprite position or anything like that?

I'm attaching the .capx so you can have a look at what I'm talking about.

Grateful since now o/


You have the Pin Behavior that does it (it lock position and angle relative to another object)
Mainly I'd recommand (if you want to try it of course) that you try to scroll the actual viewport instead (with a sprite with a scrollto behavior or with the scroll to system action)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Fri Mar 14, 2014 9:01 am

There is also a camera plugin that might be worth looking at - makes it easy to move around, zoom in and out...
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Fri Mar 14, 2014 7:47 pm

Wow! You guys are awesome!
I used the Pin behavior and it worked like I wanted.
Thank you guys, thank you very much, I really appreciate it. o/
B
17
S
7
Posts: 277
Reputation: 2,514


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 8 guests