Brutus2D

Game Programming Language

  • edit this page
  • edit sections
  • history
  • talk
create account or login
  • Brutus2D Wiki
  • Recent Changes
  • Community
  • Forum
  • Recent Posts
  • Core Programming
  • Graphics
  • Player Control
  • Tutorials
  • Source Code
  • FAQs
  • Wiki Links
  • What is a Wiki Site?
  • How to edit pages?
  • How to join this site?
  • Site members
  • Recent changes
  • List all pages
  • Page Tags
  • Site Manager

Page tags

beginner button console documentation easy file graphics image initialize input key keyboard math method mouse novice object output position simple sound source-code system terminate text text-game time timing tutorial write

Add a new page

edit this panel

Player Control
Brutus2D Wiki » Player Control

Player Control can be through the keyboard, the mouse, or a joystick (or gamepad) attached to the player's computer. Each one is managed by it's corresponding built-in objects : the keyboard object, the mouse object, and the joystick object (which works for gamepads too.)

Keyboard

  • Check if a Key is Pressed
  • Check if a Key is not Pressed
  • Check if a Key has Been Released
  • Slide Control
  • 4-Direction Keyboard Control - includes WASD and arrow key control.
  • 8-Direction Keyboard Control
  • Frog Throwing

Mouse

  • Check if a Mouse Button is Pressed
  • Get the Mouse Cursor Position
  • Make a Game Object Follow the Mouse
  • Change the Mouse Cursor if Its Over Something
page tags: control player
page_revision: 1, last_edited: 1206132013|%e %b %Y, %H:%M %Z (%O ago)
edittags history files print site tools+ options
edit sections append backlinks view source parent block rename delete
help | report a bug | flag as objectionable
Part of WikiComplete.info — Powered by Wikidot
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
See pages that link to and include this page.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.