History

Preload sitting animation

Atlante45 committed 9 years ago

Commit eab2c311 parent 893a5b11 file · +3 −0Browse files

Showing the changes to scripts/tutorials/entity_scripts (1 of 1 file). Show all

Unified · Split

scripts/tutorials/entity_scripts/sit.js+3−0
@@ -46,6 +46,9 @@ · 45 unmodified lines
46 this.lastTimeNoDriveKeys = null;46 this.lastTimeNoDriveKeys = null;
47 this.sittingDown = false;47 this.sittingDown = false;
48 48
49 // Preload the animation file
50 this.animation = AnimationCache.prefetch(ANIMATION_URL);
51
49 this.preload = function(entityID) {52 this.preload = function(entityID) {
50 this.entityID = entityID;53 this.entityID = entityID;
51 }54 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t