[quote:1gh9mew7]Best way is to build small things.
What game you going to make?
Does it need a welcome screen. Build just that.
Does it need a options screen. Build just that.
Does it need a character to move left, right, up, down. Do just that.
Build your game in sections.
Agree with Dutoit, another way that can be very useful is to grab a tutorial, like the Space shooter, I think its called. And change it, for instant see if you can make it so player can switch weapon, some enemies have shields which need to be destroyed first before the enemy take damage. The reason this can be a good idea, is because you are already building on a game, where you can expect things to be done correctly. So you have some guidelines to where you have to make you changes.
Also I good idea is to make your own space shooter from scratch more in the way you want it, and if you get stuck you can see how it was made in the tutorial, and after a while you will look at the tutorial less and less, because you start to get hang of how things work together and your game might have evolved beyond the tutorial so it cant really help you anyway.
[quote:1gh9mew7]I'm not really a programmer but I do know some html stuff a bit of css that's all. Since C2 is based on html5, do you think it would be a wise idea to learn html5.
I don't think doing this will help you a lot, I would actually think it would confuse you even more.
[quote:1gh9mew7]I'm still having problems with the proper flow of events, like when will one condition be a sub event, some actions stacked together those sort of stuff.
Its a bit difficult to explain in a proper way I think.
But try to look at it like this:
Trigger
<When something happens as a result of something else> (Sounds a bit confusing )
But this is what you can refer to as a trigger, like if a person have a pistol and pull the trigger. The Trigger in this case is that the person have pulled the trigger and the pistol is firing.
Condition
<Something needs to be true or false> (This is just an If, Then Else statement)
Using the same example as above, the condition in this case could be, that the person actually have a pistol, that there are ammunition to it. Could be that the pistol is not broken and so on.
Sub conditions
<Something needs to be true or false> (This is just an If, Then Else statement)
Is pretty much the same as a normal condition, except that it works on former conditions to be true. And is more of a way to specify conditions and to make things easier to understand. So lets expand the example above a bit. Imagine that you have 10 people some of them have a pistol some don't, some have ammunition but no pistol. Some use energy weapons that doesn't require ammunition. If you try to throw all of them into one condition you will suddenly end up finding it very difficult to match these conditions.
For instant.
We want to see if a person can shoot, the requirements for this is that the person have a pistol with ammunition or an energy pistol.
So we make the conditions:
Person have a pistol (So this person should be able to shoot if he have ammunition)
Person have ammunition to pistol
Person have an energy pistol (So he can shoot)
However now there is a problem. Because conditions are always "AND" statement. So all of them needs to be true. So in this example, we might have a person with an energy pistol, but since he doesn't have a normal pistol he cant shoot, because all the conditions need to be true.
So to make it work, we need to break it down, and change the conditions to use "OR" instead of "AND" (Do that by right click an event and check "OR", so now it looks like this:
Person have a pistol (So this person should be able to shoot if he have ammunition)
or
Person have ammunition to pistol
or
Person have an energy pistol (So he can shoot)
So now the person with the energy pistol can shoot. However now a person that doesn't even have a pistol can shoot, but also a person without ammunition can as well. So clearly this would wouldn't work either. So to solve it we add a sub condition:
So the first thing is to simply check that the person even have something to shoot with so this will be our Main condition:
Person have a pistol
or
Person have an energy pistol
Then we need to check if the person actually need ammunition or not, and since we are not sure if the person at this state is using a pistol or an energy pistol, just that he use one of them. So to check it we add two sub condition since the person can actually have one of each pistol:
Person have a pistol (If this is true, then we need to check if there are also ammunition, so we add another condition)
Person have ammunition
If both these are true, the person will pull the trigger and fire the pistol.
Person have an energy pistol
The same goes for the energy pistol, but here the condition is just that the person have one, and if that's the case we fire that one as well.
So sub conditions will to some degree come automatically as things start not to work, and you simply need them to get them to work.
Actions
<A change to something as a result of something else>
In our case, when the pistol is fired the person will use one piece of ammunition each time they pull the trigger.
Hope that make it a bit clearer.