ScratchData LogoScratchData
Back to yha_curriculum's profile

YHA: Role Playing Game Mechanics Demo

YHyha_curriculum•Created May 26, 2016
YHA: Role Playing Game Mechanics Demo
3
3
112 views
View on Scratch

Instructions

Movement: (W, A, S, D) Shoot Fireball: Spacebar Use Item: U Note: I intentionally left this project raw with some blank spaces and variables shown to help illustrate the development process. It is not a complete game, but rather an example program to show how to achieve certain things in Scratch! Move around the dungeon to see how the mechanics work. You can shoot the ghost with a fireball, but he won't harm you. You can activate the lever behind the ghost and you can also open the treasure chest. Try walking behind and in front of the stone pillars (take a look inside to see how I achieved the 3 dimensional effect).

Description

I designed this game to illustrate how to accomplish some RPG (Role Playing Game) style mechanics in Scratch. Enforcing Boundaries: A lot of the dungeon is actually just a backdrop on the Stage. I used a very specific dark colored pixel in the walls that I can detect when the user tries to move in order to stop the player at natural boundaries. The 3D effect with the pillars: I detect the Y position of the character to determine if he is "behind" or "in front of" the pillars. I use X,Y bounds to prevent him from being able to walk on top of the base of the pillars. With these 2 things combined, the pillars have a natural 3D feel. Special Thanks to TheNess from opengameart.org for the art assets!

Project Details

Project ID111495025
CreatedMay 26, 2016
Last ModifiedJuly 19, 2016
SharedJuly 19, 2016
Visibilityvisible
CommentsAllowed