10/1
Start off the day with the warm-up
Play games
Besides your own game, what was your favorite and why? After playing other games, is there something you thought might be added to improve your game?
AM
gd.games/jackfranks24/cartkour
https://gd.games/lefishe69/cartkour
https://gd.games/instant-builds/f79a54dc-aedb-4799-8c53-e00e14f23726
https://gd.games/wat1/cartkour
https://gd.games/walunger/cartkour---run
https://gd.games/instant-builds/34fbbf56-747e-4ab3-9f68-d3f95e9b6c8b
https://gd.games/taroroot/cartcore
https://gd.games/cart_igd_juliena/cartkour
https://gd.games/kallvey/cartkour-game
https://gd.games/thebannanaman1287/operation-shopping-cart
https://gd.games/maludion/cartkour
https://gd.games/devinl/cartkour
https://gd.games/cx001/cartkour--platformer-
https://gd.games/falsepotato/cartkour--the-orange-s-journey
https://gd.games/kaleb_chapa/cartkour
https://gd.games/games/8fce3307-6b2d-4d92-b548-8c3f98808fd3
https://gd.games/noah_igd_am/test-idea-zone
https://games.gdevelop-app.com/game-4e476cbb-5160-477e-ab5d-c84e3bad68ea/index.html
PM
https://gd.games/ezekieln07/cart-souls-ii
https://gd.games/fraggleblap/cartkour
https://gd.games/dinoplant/turn-in-pete
https://games.gdevelop-app.com/game-05cdee5b-3104-4d2e-a1c7-cc5a5d5f70b4/index.html
https://gd.games/neoanna/cartkour
https://gd.games/yappingbadger/cart-project--pm
https://gd.games/cartgamer1248/cartkour
https://gd.games/bb_bird_found/cartkour-hb
https://gd.games/instant-builds/e126b021-697c-48fd-aabb-5a80e9e70413
https://games.gdevelop-app.com/game-75a2f540-1f37-4ca7-a7f3-04092f4d360f/index.html
https://gd.games/instant-builds/d212ba93-af74-4d0e-a8ca-d5b30163bbef
https://gd.games/games/90a01dd0-a082-4709-8a04-7150f87eee33
https://gd.games/blabby/cartkour
https://gd.games/emilyda/cartkour
https://gd.games/angca1016/powerful-statement
https://gd.games/izzybel/warm-reward
https://gd.games/instant-builds/bffd37ad-805c-413d-b33e-9553fc8480d7
https://games.gdevelop-app.com/game-072a10fb-e925-4386-8354-bd23ef3dd45a/index.html
https://gd.games/instant-builds/bffd37ad-805c-413d-b33e-9553fc8480d7
https://gd.games/games/c2ddfac7-57a4-4b55-ba16-9ceedc9b714a
Besides your own game, what was your favorite and why? After playing other games, is there something you thought might be added to improve your game?
What are you learning?
GDevelop
Why is it important?
Now that we have created a came with SMBX and learned about level, storyboarding, NPCs and design, it's time to go to the next step... adding physics, conditions, actions, scenes, If/Then statements and more!
GDevelop uses the Box2D Physics Engine
How do you show that you understand? What is the assignment?
Crouch
Delays
External Events
Scene Variables
Changing the animation when it touches another object
Let's make a little crouch
Open your hero
Add an Animation
Edit is Piskel
Make a pie
Edit Collision Masks
Uncheck Share Same Collision masks for all animations
Set the colission mask around the pie
Add a new event
The if then statement we are making is "If the Q key is pressed then change the Hero animation to Pie
Time to crack dem bones
Add a new object
Sprite
Name: Bones
Add animation
Piskel;
Make a Skull and Crossbones
Add a second animated version so that it disappears or blows up
Now we are going to add a little delay to the animation
Create a new event
Condition
Hero is in collission with Bones
Action
Change the number of the animation Bones to 1
Test
Now add the action wait 2 seconds
place it above the change animation action
test and save
Time to make an external event
Add a new object
Sprite
Name Blade
Add animation
Piskel;
64x64
Create a blade
Add a platform and extend it out
add your blade
Create new object
Sprite
Arrow Right
Piskel
Make an arrow pointing right
Create new object
Sprite
Arrow Left
Piskel
Make an arrow pointing Left
Add them to the scene
What you are going to do is make the blade collide with the arrow and change direction collide with the other arrow and on and on
Click on properties
Add externale Events
name your external event "enemies"
Double click your external event to open it
Click on choose scene
Select untitled scene
WHAT YOU ARE DOING NEXT IS CRITICAL
You must go back to your scene (game) and connect this external event to your scene
The reason is that we want everything in this external event to happen in every scene we select (we only have the one selected right now).
Select your scene
Click the plus
Click Link external events
Select the event
So everything we add in Enemies will also work in our scene
Click on the Enemies External Event
Add event
Condition will be If blade is in collision with Arrowright
Now we are going to add the action
Change variable value
Add or edit Variable
MAKE SURE YOU SELECT THE ONE WITH THE WORD SCENE!
Select the Scene variable tab
Name the variable Walking
Set the value to 0
*** WE HAVE JUST CREATED THIS VARIABLE CALLED WALKING***
So if the blade is in collision with Aarow Right then change the scene variable Walking to 0
Now I am going to do the same thing for collision with Arrowleft but change the variable to 1
Add trigger once while true to each instance
Each time the blade hits an arrow, it changes the Walking Variable
The goal is to make it go back and forth so it is time for the movement
Add a new events
Condition
Number Variable
Variable is walking
Value to compare is 0
So what we are saying is If the variable of walking is 0
Now we will add force to make it move
Select add a force to move toward an object
Object is the blade
target object is Arrow left
speed is 100
So if the variable of walking is 0 then the blade will be going towards the left arrow at a speed of 100
If the blade collides with the left arrow then it changes the variable to 1
Now we want the variable 1 to make the blade go towards the Arrow right so that is continually goes back and forth switching each time
Test and save
Now let's hide the arrows so you cant see them in the game
Add a new event in your events under camera
In the action add hide Arrowleft and hide arrowright
Time to make the blade spin and flip when it collides with the hidden arrow
Go back to your enemies event
Add a new event
Condition is always
Action is rotate
Angular speed 500 (or whatever)
Add flip horizontally no in your set walking variable to 0 action
Add flip horizontally YES in your set walking variable to 1 action
Test and save
In your events, add a collision so that if the hero touches the blade, the scene resets