Jump to content
IGNORED

Code for running into a wall mysteriously stopped working


Recommended Posts

This used to work:

 

    IF CONT.RIGHT THEN
        #card = #backtab((many -  / 8 * 20 + (manx - 8 +  /  AND $0FF8
        IF #card = 269 * 8 THEN dir=0
        if dir=1 then manx=manx+1 : #flip=0
    END IF

 

so I put it into a new game and it quit working. The guy can go anywhere he pleases instead of running into the wall and STOPPING like he's supposed to.

 

thisis1.bas

Link to comment
Share on other sites

In the code you linked, you have this under "IF CONT.RIGHT":

.

        if dir=0 then manx=manx+1 : #flip=0
              ^^^

.

Don't you mean "if dir=1" there?

 

Also, where do you set dir back to 1? The only assignments to dir in your main loop clear it to 0.

Link to comment
Share on other sites

How do I check to see if something is printed on the screen? I gave up on the other project and am now making a new one which is a Tetris one. I know there is a 4-tris for Intellivision, but it's impossible to get so I'm making a new one that people can actually get, assuming it's finished.

 

I have one shape and I want to check to see if it touches a shape already on the screen.

 

post-9475-0-20537600-1557848768.gif

 

(the name of the game is "Oh well.")

Link to comment
Share on other sites

The generic answer is that you read the #BACKTAB, though I can't recall if IntyBASIC has shortcuts for you to get the character or if you have to mask and shift it out by hand. It is not hard to do once you learn how it is stored, and posisbly something you've already done in your previous projects?

Link to comment
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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...