9/30
Wear a CART Shirt or Home School Shirt on Friday if Possible so when we Mob Up at Fresno State we look good.
Start off the day with the warm-up
Where is your favorite place in the world? Describe it to me. Who are you ideally with (SCHOOL APPROPRIATE PLEASE!). What time of year is it? Why do you like it? How often have you been there?When was the first time you went?
half page
3 points
What are you learning?
GDevelop - CARTKour
Why is it important? What is the assignment?
It's time to show what you have learned so far!
You are going to develop a parkour game based on CART... Hence CARTKour
This will be broken up into two assignments.
Assignment 1
Using Graph Paper or plain white paper, sketch out an idea for your CARTKour Map
Then you will create a google doc explaining how your game is going to work and the elements you are going to use.
This is due TODAY!
Worth 3 Points
Assignment 2
You will create your CARTKour Game based on CART.
You may have the game setting anywhere on school grounds including the roof, inside or outside the building.
Get Creative and have fun!
Requirements
Your game must be based on CART and it include elements that make it recognizable. You can do this by creating your own art, modifying FREE assets or doing something innovative.
You must create your own custom player with multiple animations (idle, walking, jumping, climbing, etc)
Requirements
Custom Player - 1 Point
Looks like CART - 1 Point
Playable Game - 1 Point
Total 3 Points
Due Friday
Our events are getting pretty big so it's time to organize a little bit before we continue adding more
Add three event groups
Name the groups Player, Camera and Collision and place the events in the appropriate group
Open up your Hero sprite
Edit in Piskel
Copy your first frame
Save
Add new Animation
Name it HeroRight
Edit in piskel
paste the hero
Modify the frame so that your pumpkin is facing right
We are now going to create sub events
Add new event
Now let's create a jumping animation for the Hero
Open up and add animation
Name it Herojump
Copy your original Hero and paste it in the first frame of Herojump
Create an animation that will play when the Hero jumps
Go back to events
Create a subevent in your Hero Is Moving Event
Condition will be Hero is Jumping
Action will be Change the animation of Hero set to Hero Jump
Test and Save
when the hero moves right, and it stops moving, the sprite is still facing right. We want it to return to the idle pumpkin
To do this, we are going to use an inverted condition. This sounds exciting but alas, it is actually rather dull.
Create a new event
Select the hero and is Moving but this time click on the Invert Condition
All we are doing is saying When the playing isn't moving
We are going to change the animation to Pumpkin
Test and save
When you go left, the hero still faced right
Create a new event to fix this
THIS IS A NEW ONE!
Add a new event
Add condition
The condition is key pressed and the key is the right key
The action we are going to use is Flip Horizontally and select NO for activate flipping
The reason we are doing this is because the hero already faces right when we move but when the condition left key is pressed, it permanently flips the sprite so we have to flip it back when we hit the right key
Now let's to the same for the left key but this time we will activate the flipping
We will add a sound to the jump by adding another event
So when the Hero is Jumping
Now add a secondary condition called Trigger Once
Action is play a sound
Create a sound
Test and Save
Try to create a climbimg animation on your own
Add an event
The if/then
If the hero is on the ladder then change the animation to the climbing animation
We are going to mess with LERPs
Lerp - Linear Interpolation, is a mathematical function that returns a value between two others at a point on a linear scale.
Basically it eases the transition between two values over time.
So the math here is lerp (X,Y,Z)
X = Start Value
Y = End Value
Z = Value to interpolate Start and End (tfor our purposes, the speed that the camera follows
Now we are going to change the focus of the camera off the Hero and on the X position
Delete the action for your camera event so you have an empty event
Create a new action
Center Camera X position
Value is:
lerp(CameraX(), Hero.X(), 0.25)
So our start value is the Camera's X Position - CameraX()
Our end value is the Hero's X position - Hero.X()
The interpolation (speed) is 0.25
Test this out and change the last value until you have the LERP that you like.
Do the same for the camera Y position
Time for Parallax
Add a new object
Sprite
Name Clouds
Add animation
Piskel
Size 256 x 256
Make a cloud
New we are going to add a three layers
Your base layer is where all the game play is happening
name the three new layers Front, Middle, Back
Reorder your layer if you wish
With your base layer selected, drop in a cloud and move it to the middle layer
You should now be able to see your platforms in front of the cloud
Add another and rotate it
Make a moon
Add a new object
Sprite
Name Moon
Add animation
Piskel
Size 256 x 256
Make a Moon
Add it in the scene and place it on the back layer so that it is behind the cloud
Now we will give that Parallax look
We are going to change the camera follow speed at different layers
Go to your events
Add a new event
Place it under Camera
We want it to be all the time so condition is blank
The action is going to be Camera center X position
So the camera is going to go at the speed of the hero x .8
Do the same thing for the Middle Layer
Time to make an external event
Add a new object
Sprite
Name Blade
Add animation
Piskel;