COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command let the sprites walk?
A
Walk
B
Run
C
Move
D
GO!
Explanation: 

Detailed explanation-1: -the command move lets the sprites walk in animation tools and programs.

Detailed explanation-2: -Move the Sprite (1) Drag the Events block when green flag clicked to the Scripts area. (2) Drag the Motion block move ( ) steps and drop it under the current blocks.

Detailed explanation-3: -To make the sprite move backward, give a minus (-) sign before the number as shown below. This will move the sprite 30 steps back on the stage.

Detailed explanation-4: -Choose a sprite that has costumes with moving legs, such as: Add a script to change costumes and move: You can change how fast it moves by typing in other numbers. If the sprite is upside-down, click. and set the rotation style to left-right:

There is 1 question to complete.