How to code for beginners #1 – no experience required

How to code for beginners #1 – no experience required


WHAT’S UP GUYS WELCOME TO ANOTHER VIDEO MY NAME IS SPARCKMAN YA SO TODAY I WANT TO SHOW YOU HOW TO CODE EVEN IF YOU HAVE NO EXPERIENCE AFTER WATCHING THIS VIDEO YOU SHOULD HAVE A PRETTY GOOD IDEA HOW TO CODE I’M GOING TO MAKE THIS VIDEO IN FOUR PARTS OKAY, SO THIS WILL BE JUST SORT OF LIKE THE INTRODUCTION OKAY. SO THIS SHOULD GIVE YOU A PRETTY GENERAL IDEA OF HOW TO CODE IN JUST ABOUT ANY LANGAUGE YA, PEOPLE THINK CODING IS EXTREMELY DIFFICULT BUT IT’S ACTUALLY VERY SIMPLE NOW FOR CODING THE MOST IMPORTANT THINGS ARE VARIABLES SO YOU NEED TO LEARN THOSE FIRST YOU HAVE STRINGS WHICH IS TEXT INTERGERS A NUMBER YOU’VE GOT FLOATS WHICH IS A NUMBER WITH A DECIMAL OKAY LIKE 1.5 OR SOMETHING LIKE THAT AND BOOLEANS OKAY WHICH IS JUST ON AND OFF OR TRUE OR FALSE SO THE FIRST THING WE’RE GOING TO DO IS ACTUALLY JUST LEARN HOW TO DISPLAY TEXT ON THE SCREEN ALRIGHT, THAT’S VERY IMPORTANT NOW YOU CAN DO THIS IN NOTEPAD IF YOU WANT IT DOESN’T REALLY MATTER BUT IF YOU’RE LOOKING FOR AN EASY LANGUAGE TO GET STARTED CODING I WOULD SAY AGK2 IS PROBABLY ONE OF THE MOST SIMPLE LANGUAGES OUT THERE IT’S NOT ONLY SIMPLE BUT SUPER SUPER POWERFUL YOU CAN CODE JUST ABOUT ANYTHING IN AGK2 SO YA LET’S OPEN AGK2 AND LET’S GO FILE NEW LET’S CALL THIS.. I’M GOING TO CALL THIS SPARCK JUST BECAUSE WE CAN OKAY LET’S CREATE THE PROJECT OKAY IT AUTOMATICALLY SAVES NOW IF YOU RUN THIS YOU’RE GOING TO NOTICE THAT NOTHING HAPPENS OTHER THEN IT DISPLAYS THE FPS RIGHT THOSE FORWARD SLASHES ARE COMMENTS OKAY THIS IS NOTHING YOU DON’T NEED TO WORRY ABOUT THIS SWITCH SIZE TO 640 BY 480 OKAY THIS IS THE WINDOWS SIZE AND FOR THE RESOLUTION I GUESS I COULD SET THIS TO 640 BY 480 AS WELL IT DOESN’T ACTUALLY HAVE TO MATCH THE WINDOW SIZE NOW FOR THE SYNC RATE I CAN SET THIS TO 60 FPS YOU USUALLY SET IT TO 30 TO SAVE BATTERY ON MOBILE DEVICES THAT’S BECAUSE AGK2 IS GEARED TOWARDS MOBILE DEVICES YOU CAN MAKE GAMES FOR ANYTHING IN AGK2 LET ME TAKE OUT THAT PRINT TAKE THAT OUT WE DON’T ACTUALLY NEED IT AND LET’S PUT THAT OUT OF THE WAY AND THIS HERE IS THE ACTUAL PROGRAM ALRIGHT SO ANYTHING YOU PUT BEFORE THE DO RUNS ONLY ONCE OKAY, ANYTHING YOU PUT AFTER THE DO IT KEEPS RUNNING OKAY CONTINUOUSLY SORT OF LIKE AN ALWAYS LIKE IF YOU WERE USING ANOTHER SOFTWARE I GOT AN UNDERTALE BACKGROUND HERE WE’RE GOING TO USE LET ME JUST SAVE THIS AND I’M GOING TO PASTE THAT INSIDE THE PROJECT UNDER MEDIA IT’S JUST CALLED UNDERTALE .PNG LET’S LOAD THE BACKGROUND ALL YOU HAVE TO TYPE IS CREATE SPRITE LOAD IMAGE ROUND BRACKET AND THE NAME OF YOUR FILE WHICH IS UNDERTALE.PNG LET’S TRY IT OUT AND THERE IS OUR BACKGROUND ALRIGHT, SO LET’S CREATE SOME TEXT HERE I’M GOING TO GO CREATE TEXT THE NUMBER OF THE TEXT THIS IS GOING TO BE TEXT 1 AND OUR TEXT STRING WHICH IS GOING TO BE HELLO WORLD SO IF YOU RUN THIS WE ARE GOING TO GET AN ERROR MESSAGE AND THAT’S BECAUSE TEXT ONE ALREADY EXISTS YA SO REMEMBER AFTER THE DO IS LOOPING OKAY, SO IT’S ALREADY CREATED THIS TEXT ONCE AND IT CANNOT CREATE IT AGAIN SO LET’S CUT THE TEXT AND LET’S PASTE IT BEFORE THE DO OKAY SO LET’S RUN THIS AMD WOW THE TEXT IS SOO SMALL YOU CAN’T SEE IT SO WE NEED TO MAKE IT BIGGER SO WE’RE GOING TO SET TEXT SIZE AND THE NUMBER OF THE TEXT IS ONE AND FOR THE SIZE I’M GOING TO SET IT TO 24 SO LET ME JUST RUN THIS THERE IS OUR TEXT SO LET’S SET THE TEXT POSITION THE ID IS GOING TO BE ID ONE TWO ZEROS, ONE FOR THE X AND Y LET’S SET THE X TO 200 AND LET’S SET THE Y TO 300 RUN THIS OKAY SO MAYBE WE CAN BRING IT DOWN A LITTLE MORE LET ME SET THE Y TO MAYBE 40 AND MAYBE A LITTLE LOWER LET’S SEE LET ME TRY 43 OKAY SO THAT WORKS FINE WE CAN ALSO SET THE TEXT BOLD OKAY TYPE THE ID OF THE TEXT WE’RE GOING TO SET THIS TO TWO WE SEE THAT MY TEXT IS NOW SHOWING IN BOLD SET TEXT COLOR THE ID OF THE TEXT IS ONE AND WE’RE GOING TO TYPE FOUR ZEROS OKAY NOW THE FIRST THREE ZEROS IS FOR RGB RED GREEN AND BLUE WE’RE GOING TO SET THE RED TO 255 OKAY THAT’S THE GREEN THERE SET THAT BACK TO ZERO SET THE FIRST ONE TO 255 255 RED OH WE FORGOT THE OPACITY THE OPACITY IS SET TO ZERO SO THAT MAKES IT INVISIBLE LET’S SET IT UP TO 255 WHICH IS THE HIGHEST NUMBER YOU CAN SET FOR THESE VALUES AND THERE IS OUR TEXT OKAY SO YOU DON’T WANT TO DO TOO MUCH THE FIRST TIME YOU’RE TRYING THIS SO YA TRY THIS OUT FIRST AND IN THE NEXT VIDEO WE’RE GOING TO TO VARIABLES OKAY GUYS HIT THE LIKE BUTTON AND SEE YOU IN THE NEXT VIDEO BYE NOW

7 thoughts to “How to code for beginners #1 – no experience required”

Leave a Reply

Your email address will not be published. Required fields are marked *