Eight Direction Movement With Arrow Keys

Eight Direction Movement With Arrow Keys

'Yan wasa

0

Ƙima

4.5★

Nau’o’i

Walking Simulator

Game da

You can use the arrow keys on your keyboard to move the character in this example in any one of 8 directions. The character movie clip is made up of a total of 16 frames, 2 for each direction. 8 of the frames are for standing in all directions, and the other 8 frames contain additional movie clips that show the character walking in each of the 8 directions. The ActionScript used to control the movement and which frame the character needs to be on is handled in an onEnterFrame event (as opposed through onKeyDown events) and consists only of a few lines of code.

Mai ƙirƙira

Trevor McCauley

Ɗakin wasa

Rukuni

Walking Simulator

Nau’i

Ƙaramin wasa

An fitar

Kwanan nan

'Yan wasa

0

Daga mai ƙirƙira

Ƙari daga Trevor McCauley

Nau’i ɗaya

Ƙarin wasannin Walking Simulator

Mafi shahara

Wataƙila kuma kana son waɗannan

Wasanni masu tasowa da sauran 'yan wasa ke so yanzu.