Tuesday, 21 May 2024

Coding: Events

Yesterday in Computing our aim was to understand what an event is. We then had to use an event to control an object.

An event, is an occurrence that causes a block of code to be run. The event could be the result of user action such as the user pressing a key or clicking the screen. In 2Code, the event commands are used to create blocks of code that are run when events happen. 




No comments:

Post a Comment