- Move with left/right arrow keys. - Jump up with the up arrow key. - Drop down platforms with down arrow key. - Pause game with enter key. ------------------------------------------------------------------ Tags: #list #platformer #experiment #test #obstacles #semi-solid #platforms #game #all
This was an experimental test on detecting multi-sprite object platforms using a list to check the sprite name the player was touching. All full solids get recorded in the 'Obstacles' list, and all semi-solids get recorded in the 'Platforms' list. This concept would help reduce the amount of duplicate scripts just for touching/identifying different obstacles. -------------------------------------------------------------- Originally there was an issue with this where the player object kept falling through the bridge when touching another semi solid platform object near by. Luckily there was a very simple fix for this that I had overlooked. The issue was that I was checking the list of platform objects in multiple scripts. I only just needed to check this list once, then to record which of the current platforms that the player is touching their feet on. Then we use that data to stop the player from falling down. ------------------------------------------------------------------ Tags: