Sunday, 29 October 2017

Game design and coding progress in Construct 2.

Rename the default into stand for 'front view'. Add new animation and rename it with 'walk'.




Import frames from file for walking animation. Set the loop to yes. Close the tab.

Right click twice on layout, and click on keyboard to set the gameplay with keyboard.

Go to event sheet and click on add event and then character.

Click on 'Platform on moved'.

Click on add action and then character.


Click 'set animation'.

Set the animation on 'walk' (for platform on moved).

Now, add new event and click on 'platform on stopped'.

Click the add action and set the animation to 'stand'.


Event 'Platform on landed' was set to 'stand' action as well.

Event 'platform is moving' was set to 'walk' action.


Copy the above layer (platform is moving' Control+C) and pasted below (Control +V). Now click on 'platform is moving' and click on 'Invert'.


Change the action for event 'invert platform is moving' to 'stand'.

Set the animation for jump, and do the same for event 'platform on jump' and add action (animation- jump).

Add event and press on keyboard.

Click on 'on key pressed'.

Press on left arrow and click done.

Add action - character - set mirrored.

For right arrow- character- set not mirrored.

In game layer, add platforms and add behaviour 'jumpthru'.


Click on character.

Add behaviour - scroll to. (to enable the character to scroll through the game with background moving.)

Click on background layer and change parallex value to (0,0).


Level 1 progress so far:
The ground, platforms and tree layer is kept added on since the background layer was set to 0,0 (permanent). This allows the trees to move with character.


No comments:

Post a Comment