Jump to content
Sign in to follow this  
JC Software

My first project weird glitch

Recommended Posts

This is my first post on any atariage forum, if this is the wrong place to post this topic, then I'll gladly move it.

First of all, I just need to give out a big thank you to Random Terrain for the awesome tutorial page (I use it like a bB bible), atariage for this forum, and anyone who worked on batari basic/visual bB.

So while testing out my first project this weird glitch came out of nowhere, everything works fine until the player touches (collides) with player1 (the finish flag).

When this happens the game starts all over. I assume either a variable was messed up or misspelled, or perhaps players can't collide?

(I don't need anything else fixed, I know the movement of the player sucks as well as the collision against walls. I'll be sure to improve those in Max's Maze 2)

 

Max's_Maze_2017_11_2_1723.bas

Edited by Lolkiu64

Share this post


Link to post
Share on other sites

You have two checks for collisions between player0 and player1. The first does a goto to __map02. In that block, you repeat the same collision checks, which will come out the same given that there has not been a drawscreen since the last collision checks, so your second collision check for player0 and player1 will also trigger. This one goes to __map03.

 

Here is the remainder if the file after __map03:

__map03

__map04

__map05

__map06

Your game restarts because it falls off the edge here and runs out of instructions to execute, so the game restarts.

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...