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
4646 this.lastTimeNoDriveKeys = null;
4747 this.sittingDown = false;
4848
49+ // Preload the animation file
50+ this.animation = AnimationCache.prefetch(ANIMATION_URL);
51+
4952 this.preload = function(entityID) {
5053 this.entityID = entityID;
5154 }

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