Hey Guys !
I just want to share some quick easy tips that I think you might see helpful for all beginner developers in Construct 2 and who uses Construct2 free edition
Minimize and Reduce Codes (EVENTS)
When I first started game development on Construct2 I was not experienced enough so I started to add wrong events where i can minimize codes for my game. For example I started to make level boxes by cloning, each box will go to a certain level , so if I have 10 levels there will be 10 events. More there are animation. If the level is larger than the level box itself I need to code for each sprite of box it's own event for animation, Which would take another 10 events. So I will have left 80 events and the 20 events are only for clicking to go to a level and change animation. So if I had to make 50 levels the grand total of events would be 50*2=100 !
Which means nothing left for the rest of the game. sad huh?
How I managed to fix it?
Look What I've done to reduce it to only 2 events! I have managed to add one sprite and called it box or level then I made instance variable called ID. Each Level has its own ID. Level 1 has ID 1. So named each level layout the name "Level" with the number.
I used these events:
So by looping and instance variable I managed to free much events for later. So I have now 98 events to freely use!
Use global variables and instances variables
Use loop for smaller codes