I quickly had a falling out with Game Maker do to it not supporting any sprites or sounds I tried to make myself.Whaaaat?
Quite a few people dare to disagree. (http://forums.tigsource.com/index.php?topic=4017.0)I quickly had a falling out with Game Maker do to it not supporting any sprites or sounds I tried to make myself.Whaaaat?
Again, whaaaaaaat?Quite a few people dare to disagree. (http://forums.tigsource.com/index.php?topic=4017.0)I quickly had a falling out with Game Maker do to it not supporting any sprites or sounds I tried to make myself.Whaaaat?
Although considering the complexity of anything made to make anything resembling a game, such a feature could be in an obtuse location.
Quite a few people dare to disagree. (http://forums.tigsource.com/index.php?topic=4017.0)I quickly had a falling out with Game Maker do to it not supporting any sprites or sounds I tried to make myself.Whaaaat?
Although considering the complexity of anything made to make anything resembling a game, such a feature could be in an obtuse location.
I DONT recommend using a Game Making Engine because they're script based and it may be hard (and pointless) to go from one script based language to a real programming language.
I've run into a rough patch in understanding switch-cases. Can someone help me out with it?
switch(statement that is evaluated to a number)
{
case #:
(code)
case ##:
(code)
default:
(code)
}int n=(get number however you feel like)
switch(n)
{
case 5:
(output 5)
case 4:
(output 4)
case 3:
(output 3)
.....
break;
default:
(output "The number must be between 1 and 5, inclusive)
}The code starts at the matching label until it reaches either return, the closing }, or break.Incidentally, I hit up Barnes and Noble for some tutorial books on C++ and only found books on C#. It would seem that C# is more expansive, but still uses a lot of syntax from C++, so it would be beneficial to learn C++ first. My question is, what does C# offer over C++ that would be more useful?MSDN is your friend! (http://msdn.microsoft.com/en-us/library/yyaad03b(VS.71).aspx)
Also, take some sympathy on me for this question as I have oceans behind my ears given that I'm 14 and started 2 days ago. What,exactly, must be done to make something in C++ be more than text based? Is it possible? What programs would I need in addition if it is?It's not about programs but about libraries or GDI.
I hope I would've started at 14...
Ooooooooh. Now I see the practical use of it! Qwerty made it sound like a countdown. Well, now that that is cleared up, it is time to integrate it into my code.
Incidentally, I hit up Barnes and Noble for some tutorial books on C++ and only found books on C#. It would seem that C# is more expansive, but still uses a lot of syntax from C++, so it would be beneficial to learn C++ first. My question is, what does C# offer over C++ that would be more useful?
Also, take some sympathy on me for this question as I have oceans behind my ears given that I'm 14 and started 2 days ago. What,exactly, must be done to make something in C++ be more than text based? Is it possible? What programs would I need in addition if it is?
switch(n)
{
case KICK_DOOR:
if(failure)return;
do_some_skill_up_stuff();
case DOOR_BROKEN:
break_door();
return;
case OTHER_ACTIONS:
}switch(n)
{
case KICK_DOOR:
if(failure)return;
do_some_skill_up_stuff();
break_door();
return;
case DOOR_BROKEN:
break_door();
return;
case OTHER_ACTIONS:
}
Just my opinion, but I never use switch-case blocks. Seems like unnecessarily compicated syntax to do basicly the same thing as a string of if-else blocks. Plus if-else blocks let you use any boolean expression instead of having to use a number. I'd probably end up making a bunch if-else blocks anyway to come up with the number to feed to the switch block anyway.
Java-using seventeen-year-old here, BTW.
select case n
case kick_door
if roll_to_kick() then
do_some_skill_up_stuff()
break_door()
end if
case door_broken
break_door()
end selectSelect case auto breaks after each case, so there's some extra code there, but I wouldn't have set n up like that in the first place using fb.
It's a matter of opinion if you feel is tidier or not... BUT, switch IS faster.
myArray = new int[102][102][102];
for (int x = 0; x < 102; x++)
for (int y = 0; y < 102; y++)
for (int z = 0; z < 102; z++)
myArray[x,y,z] = random.Next();
myArray[23,84,35] = 5;