41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
<head>
|
|
<title>User Interaction</title>
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body background="images/back.gif">
|
|
<!--START-->
|
|
|
|
<h1>User interaction</h1>
|
|
|
|
There is no game without interaction with the user.
|
|
The standard way of doing this in <i>Game Maker</i> is to put actions
|
|
in mouse or keyboard events. But sometimes you need more control.
|
|
From within a piece of code you can check whether certain keys on
|
|
the keyboard are pressed and you can check for the position of the
|
|
mouse and whether its buttons are pressed. Normally you check these
|
|
aspects in the step event of some controller object and take
|
|
action accordingly.
|
|
|
|
<!--HELPONLY-->
|
|
|
|
<P>
|
|
Information on user interaction can be found in the following pages:
|
|
|
|
<P>
|
|
<p>
|
|
<blockquote>
|
|
<a href="404_01_keyboard.html">The Keyboard</a><br>
|
|
<a href="404_02_mouse.html">The Mouse</a><br>
|
|
<a href="404_03_joystick.html">The Joystick</a><br>
|
|
</blockquote>
|
|
|
|
|
|
<!--ENDHELPONLY-->
|
|
|
|
|
|
<!--END-->
|
|
</body>
|
|
</html> |