Content tagged script

61 usages of this tag
  • 5 replies
  • 1.9K views
This content is deleted
Forum Topic
Generating a random number with scripting
Not favoritedFavorited Favorited 0 favourites

How do I generate a random whole number via scripting? I tried using math.RandomInt(100), math.Random(100) and more. But it keeps telling me that math or random...

  • 5 replies
  • 2.72K views
This content is deleted
Forum Topic
Scripts in action can't work
Not favoritedFavorited Favorited 0 favourites

I want to run Javascript code from event sheet like beginning of this video. But When I Pressed a button in preview mode, It didn't work. Chrome developer tool...

posted 5 years ago
  • 6 replies
  • 1.47K views

I read through the scripting reference documentation but am not finding what I need. What I would like to do is this: Determine if the mouse is over object A. I...

  • 1 replies
  • 512 views
This content is deleted
Forum Topic
Javascript Arrays not properly initialized
Not favoritedFavorited Favorited 0 favourites

Hello I've written the following script: Var careerIndices = []; Var randomCareers = []; Var randomCareersForPortraits = []; Var randomCareersForCareerImages =...

posted 5 years ago
  • 1 replies
  • 673 views
This content is deleted
Forum Topic
Call a plugin function by javascript.
Not favoritedFavorited Favorited 0 favourites

Hello everbody! The audio interface ( ) just expose the audioContext . How can I call a function like: Runtime.Objects.Audio.Stop("1") exposed in the event shee...

  • 1 replies
  • 3.93K views
This content is deleted
Forum Topic
Construct 3 with different Languages
Not favoritedFavorited Favorited 0 favourites

Short and simple: Can I as a user of Construct 3 change the programming language of Construct 3 from Javascript to something else.

  • 2 replies
  • 764 views
This content is deleted
Forum Topic
How do I use a script to change a tile in a tilemap?
Not favoritedFavorited Favorited 0 favourites

I am trying to use this script to change a tile in my tilemap from whatever it is to tileID "123". Const tm = runtime.Objects.Tilemap.GetFirstInstance(); Const...

posted 5 years ago
  • 0 replies
  • 240 views
This content is deleted
Forum Topic
How do I import algorithms written in Python?
Not favoritedFavorited Favorited 1 favourites

I would like to use algorithms written in python to animate a computer player in my Construct 3 game. Of course the integration wouldn't require the user to ins...

posted 5 years ago
  • 0 replies
  • 321 views
This content is deleted
Forum Topic
Select objects using the script
Not favoritedFavorited Favorited 0 favourites

How to do this with a script: Make a selection (Pick Last Created) with two conditions, then connect them (Pin to object). Is this possible?

posted 5 years ago
  • 2 replies
  • 821 views
This content is deleted
Forum Topic
How do I read JSON in scripting?
Not favoritedFavorited Favorited 0 favourites

I'm using the scripting in C3 by adding the JS file to the files folder and loading it at the start of runtime. I'm trying to get an id from the peerjs but I'm...