• Content Count

  • Joined

  • Last visited

Everything posted by L2L2L

  1. L2L2L

    logic spacing problem

    Anyone care to help me with this logic problem? The box will over laps sometimes going left, and going right it'll totally cover the box before it or after it... Not very sure how to fix this. Anyone that can help have my thanks. here a link to my code: http://codepen.io/L2L2L/pen/mJaMyM
  2. How to make a sprite/image/bitmapText visible only in a specific area. like the canvas is a specific area; it's a rectangular area. And if anything go pass it's width, or height, it is cut/crop off. I want that effect. How do I get that effect. The only thing I came close to getting that effect is calculating and manipulating the sprite/image/bitmapText texture.crop property, and a few other property like the width, height, x, y, etc. But other problem raise do to this. Can anyone help me?
  3. how to keep something from appearing outside of an area.
  4. Where does phaser parse the XML document that contain the text location for the bitmap font sprite-sheet image? Where does it use this information to render the sprite font to the screen from the image? I tried to follow it, and as far as I can tell it use a native implantation to parse the XML URL or XML string, than it store it. Where does it retrieve this parse XML document and than extract the data needed to locate the correct text sprite from the image, than render it to the screen aka canvas? I might edit this later...
  5. Is there no other to suggestion programs that is easier to use, and give great artistic strength in characters appearance? Can inkscape do bitmap font generator.
  6. Which cost money and the window version look crappy as hack!
  7. Oh man this look sick... Oh man!!!!
  8. I mark as solve cause I could not disregard this post and the time you took to reply.... But I would still like to hear other suggestions... Like the phaser example with the custom bitmap text; what tool did she/he use to make that.
  9. It doesn't seem to give artistic ability to how the character look.
  10. How to make my own bitmap font? Can I use Inkscape? If so, how? What else beside Inkscape can I use?
  11. replaceRGB does not seem to replace all the color, it leaves an outline of the before color. How can I replace it entirely?
  12. L2L2L

    rendering bitmapData

    thanks for responding, and the help. It work,,, but the dynamic created graphic that I will use from bitmapData is not rendering right. This graphic is a imageData that is create through canvas 2d render's methods. Do you have any suggestion for that. What I'm doing: 1. Creating dynamic graphic with the bitmapData using it's property context. 2. take the image data off that canvas and altering the pixels 3. rendering the result to canvas through sprite aka display object. the result is blur... if that help. Thanks again for the help.
  13. L2L2L

    rendering bitmapData

    I use img.loadTexture(bitmapData); to render the bitmapData; which is dynamic for it change with each iteration. But the out come is still slow... very slow. So this post is still up for assistance.
  14. I'm trying to render a bitmap data multiple times. the code is very simple. I just do what I have to with the ctx property of the bitmap, this works when I just game.add[sprite|image](0,0,bitmapData); but is slow. I try to use sprite.setTexture(bitmapData); or image.setTexture(bitmapData); but does not work.
  15. I am trying to add a tweendata dynamically to an tween object, while the tween object property isRunning set to true. I figure a solution for my problem out. But I feel I should be able to get this to work too. Have a look and please get back to me on what is missing. ()=>{ var child = new Phaser.TweenData(tween); child.from({x: child.target.position.x, y:child.target.position.y}).to({x:-75,y:75}, 1000, Phaser.Easing.Circular.InOut,0,0,true); tween.timeline.push(child); child.parent.onComplete.addOnce(()=> (target, tween){ console.log('tween:',tween, 'target:',target); //try calling child.start() to run it manually here, //...remove child from tween to stop repeat. if you know a better way via library 'Phaser' to do this, please share. }); }
  16. L2L2L

    can't load image

    I believe to have found the issues, it had something to do with the file location. If you have any advice toward issues like this or similar, feel free to share them.
  17. L2L2L

    can't load image

    Can't load any other png image but what I download with the example: var stage = new PIXI.Stage(x08800ff);var renderer = PIXI.autoDetectRenderer(400,300);document.body.appendChild(renderer.view);var texture = PIXI.Texture.fromImage("image.png");var sprite = new PIXI.Sprite(texture);stage.addChild(sprite);renderer.render(stage); The above is not my code, I just wrote it down to show I know the very basic of what two do. This works with the image I download with the source code, but not my png image. I'm creating my png with an svg editor, and export it as png.
  18. I spent the hold day trying to figure out how to deal with cors!!! I'm testing on an local machine and don't have a server. How can I deal with cors.I been at this the whole day. Can anyone help me?