This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macroScript RemoveMissingBitmaps | |
buttontext: "RemoveMissingBitmaps" | |
category: "[3DGROUND]" | |
( | |
on execute do ( | |
/* | |
Remove Missing Bitmaps | |
1.0.0 | |
MastaMan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pc.script.createLoadingScreen(function (app) { | |
// Settings | |
var projectNameLine1 = 'Bing AI Gallery'; // Project name, line 1 | |
var projectNameLine2 = ''; // Project name, line 2. You can use empty value '', for disable 2 line | |
var showControlsUsage = true; // Whether display keyboard shortcuts | |
var fontWidth = '3vw'; // Relative font size, depends on page width | |
var controlsSize = '8vh'; // Relative controls size, depends on page height | |
var progressBarHeight = '3px'; // Progress Bar height in pixels | |
/////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PlaySoundOncollision = pc.createScript('playSoundOncollision'); | |
PlaySoundOncollision.attributes.add('trigger', { | |
title: 'Trigger Entity', | |
description: 'Please select entity with collision.', | |
type: 'entity' | |
}); | |
PlaySoundOncollision.attributes.add('soundName', { | |
title: 'Sound Name', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LookAtplayer = pc.createScript('lookAtplayer'); | |
// initialize code called once per entity | |
LookAtplayer.prototype.initialize = function() { | |
}; | |
// update code called every frame | |
LookAtplayer.prototype.update = function(dt) { | |
this.entity.lookAt(this.app.player.camera.getPosition()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var InfoPanel = pc.createScript('infoPanel'); | |
InfoPanel.attributes.add('trigger', { | |
title: 'Trigger Entity', | |
description: 'Please select entity with collision.', | |
type: 'entity' | |
}); | |
InfoPanel.attributes.add('timer', { | |
title: 'Load Timeout (s)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Pulse = pc.createScript('pulse'); | |
Pulse.prototype.initialize = function() { | |
this.factor = 0; | |
this.size = 0.7; | |
this.growing = false; | |
this.s = this.size; | |
this.entity.setLocalScale(this.size, 0.01, this.size); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PictureLoader = pc.createScript('pictureLoader'); | |
PictureLoader.attributes.add('timer', { | |
title: 'Load Timeout (s)', | |
description: 'Postpone loading in seconds.', | |
type: 'number', | |
default: 3 | |
}); | |
PictureLoader.attributes.add('pictureCaptionName', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PickAndMove = pc.createScript('pickAndMove'); | |
PickAndMove.attributes.add('playerSpeed', { | |
type: 'number', | |
default: 10, | |
title: 'Player Speed' | |
}); | |
PickAndMove.attributes.add('hotspotEntity', { | |
title: 'Hotspot Entity', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// First Person Controls That Drive a Character Controller // | |
//////////////////////////////////////////////////////////////////////////////// | |
var FirstPersonView = pc.createScript('firstPersonView'); | |
FirstPersonView.attributes.add('camera', { | |
title: 'Camera', | |
description: 'The camera controlled by this first person view. It should be a child of the entity to which this script is assigned. If no camera is assigned, the script will create one for you.', | |
type: 'entity' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pc.script.createLoadingScreen(function (app) { | |
// Settings | |
var projectNameLine1 = 'SVOYA'; // Project name, line 1 | |
var projectNameLine2 = 'APARTMENT'; // Project name, line 2. You can use empty value '', for disable 2 line | |
var showControlsUsage = true; // Whether display keyboard shortcuts | |
var fontWidth = '10vw'; // Relative font size, depends on page width | |
var controlsSize = '8vh'; // Relative controls size, depends on page height | |
/////////////////////////////////////////////////////////////////// |
NewerOlder