[Solved]How do I Move Camera Using Keyboard?

Get help using Construct 2

Post » Thu May 29, 2014 12:45 pm

So here is the concept :
1. The character will automaticaly move on platform style game from the starting point to finish point
2. The player must move the screen view to follow the character movement, if the character is no longer captured in the view, gameover

If you don't got it, you can try to play such game here
kongre*gate.com/games/TurtleCream/long-take

So, is it possible to create such game using Construct 2?
anyone care to explain the basic?
Thanks
Last edited by ijoin on Thu May 29, 2014 2:40 pm, edited 1 time in total.
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 29, 2014 1:02 pm

I managed to make the auto moving system using simple platform and move forward in event editor
Is there any other auto movement better than this?


So now I need to know how to move the camera
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 29, 2014 1:10 pm

Are you talking about 'autorunner' type games?

If so, there are built-in templates in C2 for such, as well as numerous examples posted in the forums.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,541
Reputation: 60,426

Post » Thu May 29, 2014 1:27 pm

zenox98 wrote:Are you talking about 'autorunner' type games?

If so, there are built-in templates in C2 for such, as well as numerous examples posted in the forums.

No, it's not an auto runner game
Please take a look at url posted on first post to get the idea and if you can solve it, I'll be very glad :D
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 29, 2014 1:33 pm

If possible, as it is 2D, you'll have to play with a camera, zoom effects, scroll, keyboard, ...
B
159
S
27
G
17
Posts: 916
Reputation: 32,668

Post » Thu May 29, 2014 1:43 pm

iceangel wrote:If possible, as it is 2D, you'll have to play with a camera, zoom effects, scroll, keyboard, ...


Yeah,my main question is how to move the camera view using keyboard controller and how to detect whether the character is still on camera view or not
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 29, 2014 1:52 pm

I use a scroll object (hidden) linked to the keyboard and detect, is if the objective is to compare the axes ( x ,y ).
B
159
S
27
G
17
Posts: 916
Reputation: 32,668

Post » Thu May 29, 2014 1:59 pm

iceangel wrote:I use a scroll object (hidden) linked to the keyboard and detect, is if the objective is to compare the axes ( x ,y ).


Yes, I've just tried that
So, here is what I did
I use 2 object, 1 is hidden and used to "move" the camera, the other one is used as the main character who which will be "auto running" to the end of the level

The character object moves like I wanted, automatically to the end of the level. Now, the question is how to move the hidden object?
Which movement should I add? I've tried 8 movements, but no result :?:
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 29, 2014 2:03 pm

Ok, well!
I use object custom keyboard function, example: if i press the left button that scroll with - 5 pixels, ...
Last edited by iceangel on Thu May 29, 2014 2:05 pm, edited 1 time in total.
B
159
S
27
G
17
Posts: 916
Reputation: 32,668

Post » Thu May 29, 2014 2:03 pm

iceangel wrote:I use a scroll object (hidden) linked to the keyboard and detect, is if the objective is to compare the axes ( x ,y ).


Yes, I've just tried that
So, here is what I did
I use 2 object, 1 is hidden and used to "move" the camera, the other one is used as the main character which will be "auto running" to the end of the level

The character object moves like I wanted, automatically to the end of the level. Now, the question is how to move the hidden object?
Which movement should I add? I've tried 8 movements, but no result :?:
B
8
S
2
Posts: 203
Reputation: 1,169

Next

Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, babymumu and 6 guests