SlideShare a Scribd company logo
1 of 2
Download to read offline
Snake Escape - GameSalad Bug & Fix
I came around a bug within the game when I was trying to animate the character (Jimmy) when he
touches a snake (the death animation). I created a timer that would trigger when Jimmy touched
the snake. The timer looked like this (The behaviors missing at the bottom of the screenshot are
“Destroy Actor” and “Reset Scene”).

This timer means that when Jimmy touches/collides with a snake, for 3 seconds the attribute “Life”
will change to “0” and Jimmy will animate the death animation, after 2 seconds the attribute “Life”
will turn back to “4”, the actor will be destroyed and the scene will reset. This timer however had a
major bug. If Jimmy collided with the snake, the animation would play, but it Jimmy was still able to
move around using the arrow keys, and if Jimmy passed through the snake before the 2 second
timer (The secondary timer inside the main timer) started, the game wouldn't reset and Jimmy
would still be alive.
I fixed this by adding a simple behavior to the arrow key rules for Jimmy. Here is what it initially
looked like (This is an example of the “Up” arrow key):

Here is what I changed it to (The “otherwise” panel is hidden but is the same as previously):
Snake Escape - GameSalad Bug & Fix

As you can see, I changed the rule of movement. I made it so “If the Up key is press down AND
the attribute “Life” is more than 0 (meaning if he is alive), THEN move upwards. I applied this small
rule to all of the arrow key rules, which means if Jimmy makes contact with a snake, he cannot
move as the “Life” attribute falls to “0” as soon as he touches the snake. This fixed the issue of
passing through the snake and staying alive.

How could I make this better next time?
The hardest part about the game is that if you do not dodge the snake in time (which is easy to
do), you stop moving and then restart the whole level. This can become very annoying as you can
be cautious throughout the whole level, then end up slightly mis-timing your dodge and ending up
restarting the whole level again. Next time, I should make the game so that when you hit a snake,
Jimmy would bounce back a few feet from the collision point, giving him the chance to dodge the
snake a second time. If they fail to dodge the snake a second time, jimmy would play the death
animation and reset the scene, just like it is now. This could make the whole game a bit more
enjoyable and less frustrating. I could also clean up the rules and behaviors within the timer as it
isnʼt efficient and is messy.

More Related Content

More from Ryan Worcester

More from Ryan Worcester (20)

Graphic design
Graphic designGraphic design
Graphic design
 
111 physicsdynamics research
111 physicsdynamics research111 physicsdynamics research
111 physicsdynamics research
 
Graphic design
Graphic designGraphic design
Graphic design
 
Marketing keynote finished
Marketing keynote finishedMarketing keynote finished
Marketing keynote finished
 
Animation evaluation
Animation evaluationAnimation evaluation
Animation evaluation
 
Graphic design evaluation
Graphic design evaluationGraphic design evaluation
Graphic design evaluation
 
Target audience profile
Target audience profileTarget audience profile
Target audience profile
 
Monty info
Monty infoMonty info
Monty info
 
Comic panels transitions
Comic panels transitionsComic panels transitions
Comic panels transitions
 
Mag ownership and distribution
Mag ownership and distributionMag ownership and distribution
Mag ownership and distribution
 
Total film page furniture
Total film page furnitureTotal film page furniture
Total film page furniture
 
Lwl page furniture
Lwl page furnitureLwl page furniture
Lwl page furniture
 
Total film flat plan
Total film flat planTotal film flat plan
Total film flat plan
 
Shame issue flat plan
Shame issue flat planShame issue flat plan
Shame issue flat plan
 
Page furniture
Page furniturePage furniture
Page furniture
 
History of film magazines
History of film magazinesHistory of film magazines
History of film magazines
 
Draft designs feedback
Draft designs feedbackDraft designs feedback
Draft designs feedback
 
Focus
FocusFocus
Focus
 
Composition
CompositionComposition
Composition
 
Lighting
LightingLighting
Lighting
 

Recently uploaded

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 

Recently uploaded (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 

Bug and fix

  • 1. Snake Escape - GameSalad Bug & Fix I came around a bug within the game when I was trying to animate the character (Jimmy) when he touches a snake (the death animation). I created a timer that would trigger when Jimmy touched the snake. The timer looked like this (The behaviors missing at the bottom of the screenshot are “Destroy Actor” and “Reset Scene”). This timer means that when Jimmy touches/collides with a snake, for 3 seconds the attribute “Life” will change to “0” and Jimmy will animate the death animation, after 2 seconds the attribute “Life” will turn back to “4”, the actor will be destroyed and the scene will reset. This timer however had a major bug. If Jimmy collided with the snake, the animation would play, but it Jimmy was still able to move around using the arrow keys, and if Jimmy passed through the snake before the 2 second timer (The secondary timer inside the main timer) started, the game wouldn't reset and Jimmy would still be alive. I fixed this by adding a simple behavior to the arrow key rules for Jimmy. Here is what it initially looked like (This is an example of the “Up” arrow key): Here is what I changed it to (The “otherwise” panel is hidden but is the same as previously):
  • 2. Snake Escape - GameSalad Bug & Fix As you can see, I changed the rule of movement. I made it so “If the Up key is press down AND the attribute “Life” is more than 0 (meaning if he is alive), THEN move upwards. I applied this small rule to all of the arrow key rules, which means if Jimmy makes contact with a snake, he cannot move as the “Life” attribute falls to “0” as soon as he touches the snake. This fixed the issue of passing through the snake and staying alive. How could I make this better next time? The hardest part about the game is that if you do not dodge the snake in time (which is easy to do), you stop moving and then restart the whole level. This can become very annoying as you can be cautious throughout the whole level, then end up slightly mis-timing your dodge and ending up restarting the whole level again. Next time, I should make the game so that when you hit a snake, Jimmy would bounce back a few feet from the collision point, giving him the chance to dodge the snake a second time. If they fail to dodge the snake a second time, jimmy would play the death animation and reset the scene, just like it is now. This could make the whole game a bit more enjoyable and less frustrating. I could also clean up the rules and behaviors within the timer as it isnʼt efficient and is messy.