Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Video Tutorial] ScribbleSquash (Full game tutorial)

Author
Message
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 20th Aug 2011 16:21 Edited at: 20th Aug 2011 16:29
ScribbleSquash Tutorial

Video 1.0

(There are some minor sound artefacts, I need to solve, and this was performed without a script. I'm working on an updated version of this program which will be scripted and recorded later on in the future. But this will get new users up and running pretty quickly.)

Flowchart

This flowchart represents the pre-loop data, and should allow users to more easily identify the variables, files and UDT's used in the making of this tutorial. This is all pre-loop stuff, but I've found lists like this useful in the past.


Source Code

main.agc


gamesettings.agc

media.agc

menu.agc

mainloop.agc

Attachments

Login to view attachments
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 20th Aug 2011 20:07
Great tutorial, but the music is so loud that I cannot hear you speak behind it!!

Your favorite links anywhere right hereThe Webber Index
Eltari
13
Years of Service
User Offline
Joined: 21st Nov 2010
Location: Moscow
Posted: 20th Aug 2011 20:09
Thanks.I like this tutorial.
Scotty1973
AGK Backer
12
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 21st Aug 2011 00:17
Cool Tutorial as always. Did wonder why the global variables were not working as I was expecting , thanks.
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 21st Aug 2011 01:22 Edited at: 21st Aug 2011 01:25
Global's need to be specified in the main.agc file, at the beginning of the file, as I understand it (and I may be wrong, feel free to correct me if anyone knows better) all variables declared outside a function, in the main.agc file are automatically global. I think my example works, because the gosubs, effectively create variables "as if" they were running from within the main.agc file. So subroutines seem to be a way of circumventing this rule.

This is all just based on my observations so far, I'm fully prepared to be wrong! This code example didn't use functions, so I may find later on that functions don't see the variables created via the subroutines. I've not put it to the test yet.

Please note that UTD's do not work in this way, and appear to need to run in the main.agc file, subroutines will not circumvent this rule.
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 21st Aug 2011 05:18 Edited at: 21st Aug 2011 09:10
Make a sticky titled "AGK Tutorials".
This way new users will be able to access them with ease

Tutorial is longer than last one. I shall enjoy it.

EDIT: What software did you use to make that flow chart? I'm doing something similar for my game.

Regards,

Max
Neuro
20
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 22nd Aug 2011 08:18
Nice tutorial . But def agree that all tutorials should be on the sticky .
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 22nd Aug 2011 13:48
Excellent tutorial, learnt a few things I didn't know. The music was overpowering when you were testing and I couldn't hear your voice, perhaps next tutorial comment out the music just in case.

I reject your reality and substitute my own...
DMXtra
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 23rd Aug 2011 01:29
Daniel, great tutorial, but yes the music was drowning out your voice and I had to turn down the video when you went to test your code.

You can run the music at first to show that it works then if you try to comment it out then everything should be good.

App Game Kit (A.G.K.) - Want to be creative on many platforms at once? This is the tool you need.
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 23rd Aug 2011 03:30
Yeah the audio was dodgy as hell on that video. I'll redo the whole thing when I've got more time. Too many things to do, and CloneSprite("Daniel") doesn't work in real life.
DMXtra
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 23rd Aug 2011 05:45
Daniel, it would be great if you could make some more tutorials, I would like to get into physics and networking and stuff like that.

In fact I wouldn't mind paying something small for your tutorials for download. Just make sure the audio is good and we are all set.

App Game Kit (A.G.K.) - Want to be creative on many platforms at once? This is the tool you need.
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 23rd Aug 2011 13:41
Already ahead of you, I've started studying physics, once I'm confident in using it myself I'll put something up. Networking will be next on my list.
FlyingWild
12
Years of Service
User Offline
Joined: 29th Jul 2011
Location:
Posted: 24th Aug 2011 01:06
Excellent tutorial Daniel. Thank you.

Login to post a reply

Server time is: 2024-03-28 11:05:58
Your offset time is: 2024-03-28 11:05:58