Hello, Hey very good job, but could you show a step by step tutorial. Because as a noob, I don't really know what you did or which steps did you take to make this product.
Thanks anyways, and if not I will figure it out someday.
SuperSonic wrote:Nice job lcl
+point
I'm having a little trouble understanding your code though
In the key down event, what does "if (!stop)" mean?
Second, what does "sprintf" do?
And third, i'm having trouble understanding the switch statement for when both keys are pressed.
Could you help me a little?
Sorry SuperSonic, I wasn't here to see your post.
SuperSonic wrote:But maybe you could explain why you did not set any instructions after case 0 and case 2
switch(prevAnim)
{
case 0:
case 2:
sprintf(anim, "charStopLeft");
break;
//and so on with cases 1 and 3..
}
if (prevAnim == 0 || prevAnim == 2)
{
sprintf(anim, "charStopLeft");
}
//continues with prevAnim == 1 || prevAnim == 3
Users browsing this forum: No registered users and 1 guest