Monday 6 November 2017

Game Progress


 The designer is adding obstacles in level 3, winter theme.


 A giant snowball is rotating towards the player and the player must jump to avoid it.

Bullet behaviour and platform behaviour added as above.


The igloo is also obstacle that shoots ball towards player. Imagepoint was set near the hole where ball leaves the igloo.


 Turret behaviour added to igloo which enables shooting. Shooting ball is added and given bullet behaviour. Other coding is as above. Igloo is set to spawn another object (shooting ball). Flash is added to the player as usual when collision happens.

 

 Snowman enemy object was set to sine behaviour and added system - snowman.sine.cycloposition > 0.5 , action was set to not mirrored. Else, mirrored.

HUD layes was created in level 1 and global variable (quantity, score and death) added and was set to global (yes, overrideen) for other levels by adding the same named layer HUD in each levels.


HUD layer was set to parallex 0,0 and global = YES.


Adding global variable


For the points and total score, it was done with existing sprite font. After adding sprite font, set an instance variable.


Player on collision with the collectable items, add (number) to globalvariable.


Instant variable for quantity sprite font was set to TYPE - QUANTITY.


 The code was set as above.

System in every tick, Sprite font -comparing instance variable, Action-set text to (Global variable).

For going to next level, a signboard was added and upon collision with signboard, wait 0.5 seconds and go to level 2.

For player health point, a set of animation frame of heart was added and speed 0. 

The code:

System, Death (global variable was set to 0) more than or equal to 5, wait and restart layout.

 Game over screen is set to appear once death is more than or equal to 5. Initial visible = invisible.
















No comments:

Post a Comment