answersLogoWhite

0

The ord() function is simple. It allows you to use any key that doesn't have a constant (like vk_up) with the keyboard functions. Take a look:

{

if keyboard_check(ord("A"))

{ x - 4};

}

This checks whether the player is pressing the A key, and if the player is, the object will move left. You can also use numbers:

{

if keyboard_check(ord("1"))

{ show_message("No way! You pressed the 1 key! :D")};

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

When you need to obtain the ASCII value of a character which function apply in PHP?

ord() is the function you need. echo ord(' '); Would output the number 32.


How to find the ascii value of a letter?

To find the ASCII value of a letter in most programming languages, you can use a built-in function. For instance, in Python, you can use the ord() function, where ord('A') will return 65. Similarly, in JavaScript, you can use the charCodeAt() method on a string, like 'A'.charCodeAt(0), which will also give you 65. You can also look up ASCII values in a standard ASCII table.


Was fort ord army hospital torn down?

The former "Silas B. Hayes Army Hospital" at Fort Ord is still standing and in use. As to what use - I do no know.


Where is the Ord Township Library in Ord located?

The address of the Ord Township Library is: 1718 M Street, Ord, 68862 0206


How far is ord to London?

Where is ord


What is meant by the initials ORD?

As this question is based in Airports then its assumed the response will be "Chicago O'Hare International Airport (IATA: ORD, ICAO: KORD, FAA LID: ORD".


What is the birth name of Maren Ord?

Maren Ord's birth name is Maren Whitney Ord.


What does ord mean while texting?

ord


Is her name Anna Ord or Anna Morris-Ord?

Anna Morris Ord is Anna's full name, but for ease Anna is often referred to as Anna Ord.


What does ord mean?

'Ord' is simply the abbreviation for ordinary.


What is a standard built function in pascal?

Platform-dependent. For Turbo Pascal a few examples are: Length, Copy, Pos, Ord, Chr


What is the phone number of the Ord Township Library in Ord?

The phone number of the Ord Township Library is: 308-728-3012.