Jump to content
IGNORED

Pumping effect with side buttons


Vincehood

Recommended Posts

Hello,

I attach a small program that address my basic requirements for some game controls:

- disc left or right only -> sprite turns left or right
- bottom button only -> sprite flights straight up
- bottom button + disc left or right only -> sprite flights in upper left or right direction
- high button: fire

 

However I would like the controller to behave in the following way:

- no auto-fire/auto-flight when the buttons remain pressed

- bottom button needs to be pressed multiple times in order to fly up (against gravity effect)

 

What design pattern do you recommend to achieve such control effects?

An additional question: can simultaneous press of bottom and high buttons be detected? It does not look like my program can achieve that at least

 

Thanks!

/V

controller_test.bas

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...