Tuesday, 18 October 2016

Movement

For my dungeon idea I wanted to recreate the Diablo style hack and slash but at first I need to work on figuring out how to create the right click to move mechanic for my game. I spent some time trying to figure out how yo make it then decided that YouTube was my best online source to help me figure out how to make it. The tutorial showed me how to create the right click to move rather well and helped me into completing this.
This first bit of code defines player movement using the step effect and the first line of code implements the adding of Mouseclick sprite



third piece of code shows that if the sprite Mouse does not exist to create instance Mouseclick

This code is to align the Mouseclick into the game

this defines if the player is on the image to make it invisible unless its visable

No comments:

Post a Comment