Questions tagged [createjs]

A suite of Javascript libraries and tools for building rich, interactive experiences with HTML5.

CreateJS is a suite of modular libraries and tools which work together to enable rich interactive content on open web technologies via HTML5. These libraries are designed to work completely independently, or mixed and matched to suit your needs.


The CreateJS Suite is comprised of:

  • EaselJS - Makes working with HTML5 Canvas a breeze
  • TweenJS - Powerful library for tweening and animating
  • SoundJS - Tools for working with HTML5 Audio API
  • PreloadJS - Asset management system
  • Zoë - Tool written in ActionScript for producing Sprites for the CreateJS library.

Resources


Related tags

1271 questions
0
votes
1 answer

EaselJS tick event delta property not propagating to children

I am just starting out with EaselJS and I am running into my first hurdle. I have extended the Container object to create a new class called Egg: (function() { var Egg = function(color, x, y, cY) { this.initialize(color, x, y, cY); } var e =…
koosa
  • 2,966
  • 3
  • 31
  • 46
0
votes
1 answer

Upload image to CreateJS from local file

I try upload image from local file to CreateJS. Code is: function draw() { stage = new createjs.Stage('canvas'); var img = new Image(), f = document.getElementById("uploadimage").files[0], url = window.URL ||…
Roman Zaykovsky
  • 493
  • 5
  • 12
0
votes
0 answers

CreateJS to native android app?

As is well known, nothing would be as efficient as native code, so, for my situation, I have a js haxe project which based on createJS How would I rewrite it to native android app? I thought that if I just find a 2D gaming engine for android that…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

Extending JavaScript Classes for use on Canvas

I am working on a project to help me gain a better understanding of JavaScript and building applications with it. I am currently making a game utilizing createjs. I'd like to extend the Shape "class" by adding some additional methods to it but…
jusopi
  • 6,791
  • 2
  • 33
  • 44
0
votes
2 answers

EaselJS Word Wrapping

In many canvas frameworks there is a maxWidth and maxHeight to control word wrapping. In EaselJS setting maxWidth is trivial but is there a way to set a maxHeight to text? (Efficiently)
user1002346
  • 57
  • 1
  • 9
0
votes
1 answer

CreateJS - updating children coordinates with parent

I'd like to change the coordinates of 2 children containers within a parent container. Originally, I was looping through the children of the parent container and changing their x,y individually... but then it made more sense to just change the…
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
1 answer

CreateJS getObjectsUnderPoint when alpha = 0

I need to get all bitmaps under point in a container. The bitmaps alpha is set to 0 and this doesnt seem to work with this method. Are there any alternatives? I cant just add an event listener to the object as that is not enough in this…
Cjmarkham
  • 9,484
  • 5
  • 48
  • 81
0
votes
1 answer

Container.id vs getElementById - weird error

I have a function for my rpg game that simulates grabbing an element in a create js container object by removing it from the container (thereby removing it from the stage) when the player gets near it. function grabIt(NPC_id, index) { …
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
0 answers

Create js shape click event coords are always 0

I am creating a 10x10 grid of shapes and attaching a click event to each shape var g = new Graphics(); for (var x=0; x<10; ++x) { for (var y=0; y<10; ++y) { var s = new Shape(); //s.cache(0, 0,…
Cjmarkham
  • 9,484
  • 5
  • 48
  • 81
0
votes
1 answer

Looping through Array of Containers

I'm trying to get containers within containers that I've stored in a Containers array. Sounds confusing, so here's the code: First I make individual containers to store BMP and label for People and Animals: (I will make a new container for each…
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
1 answer

Looping through array of arrays... why won't this work?

I'd like to loop through data from two arrays to check if any of the data's distance is close to the player. Container arrays (only 1 element in each right…
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
1 answer

Snake body segments not appending to snake correctly

I'm trying to port my working java Snake game to JavaScript so people can play it on my website. DEMO TO GAME HERE... Press arrow keys and try to run over the sprites. For this Snake, I wanted to get the hang of cameras... so I implemented a camera…
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
2 answers

Sprite animation not animating correctly

I'm trying to get a sprite to animate and flip depending on which key I press (move left, move right). Right now the sprite is appearing on screen, but the sprite isn't animating correctly... Following the sprite sheet, frames 0-9 should be him…
user3871
  • 12,432
  • 33
  • 128
  • 268
0
votes
1 answer

CreateJS Publish of Flash Project Flickers

When I publish my Flash project as a CreateJS HTML5 file set the animation flickers. It seems to do it at the key frames. It does not flicker when output as an .swf. Thanks-in-advance, Guido
Guido Anselmi
  • 3,872
  • 8
  • 35
  • 58
0
votes
1 answer

Black screen issue,compiling with cocoonjs

I am compiling createjs game through cloud services of ludei. But when I paste the zip generated from cloud to my android phone sd card ,and run it from cooonjs launcher ,app shows black screen with fps.When i clicked FPS it says could not find…