Search the Community

Showing results for tags 'rope'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 15 results

  1. Rope vs Plane

    Hi, I'm looking at the documentation for Rope and Plane to try to see the difference and different use cases, but the use-case description and example construction are the same. It looks like the documentation for Plane is incorrect: the Plane constructor takes three arguments (texture, verticesX, verticesY), but the example passes only two arguments (texture, points). Shrug, I guess the Plane's use-case description and example were copied from Rope and never updated? So does anyone know when Plane is useful and maybe have a little example of creating one? Thanks in advance! EDIT: I guess the plane is for stretching a texture across a rectangle, but I still wonder how to convert the width and height from pixels to number of vertices.
  2. Phaser js distort sprit esheet

    Hi everybody, I got an issue with PhaserJS rope. I need to animate rope with spritesheet. The objective is to make curved / bent spritesheet animation. I tried almost everything but it won't render correctly. All I got is single frame being rendered, although I can see animation frames, and loop count in console log. I need to curve / bend sprite sheet animation,it is not necessarily need to be done by rope, any solution would be great. Will be grateful for any suggestion, thank you in advance.
  3. Dynamic Points for Ropes

    Can anyone confirm that once a rope has been created it has a fixed amount of points, which cannot be altered? I know the positions of the points can be modified but does the array of points itself have a fixed length after it has been created? If so, what would be the best way around this? Destroying the rope and creating a new one every time the number of points change? Or is there a way to only draw the rope between certain points in it's points array? I'm looking for a solution where I can initialise a rope, with a non specific amount of points and then when updating their positions, new points may be added or some removed. My attempts to do this inside the updateAnimation() function have so far been unsuccesful.
  4. The rope documentation says As the texture moves? The rope? I've tried moving the rope around and adjusting the crop and frame of the texture, but nothing works. I'm using ropes for waves in my game (orangesea.oddkraken.com), and I want to scroll the texture by while keeping the waves moving up and down, so it looks like the player is moving to the right. Is there a better way to go about this? Thanks.
  5. Hello, I'm experiencing weird behavior positioning a PIXI.mesh.Rope object using Canvas renderer (PIXI v.3.0.10). I put the rope object in a new container and position the container to a fixed point. Now, whenever I change the Pixel ratio (chrome dev tools) and reload the game, the Rope object inside the container moves around to a different location. The position of both the container and the rope object are still the same (debugged it), but visually the rope object inside the container is not in the same place. Secondly, applying width and height to the rope object will not change anything using Canvas renderer. can anyone please confirm that they have the same issues, or maybe suggest something that could cause this behavior. again, all of this does not occur using WebGL renderer thanks.
  6. Phaser rope issues

    I'm trying to use Phaser Ropes in order to populate the top of a curved world with ground. As the rope is a mesh that distorts an image its perfect for this purpose. However I'm running into two issues. 1. According to the docs, a Phaser Rope is "a Sprite that has a repeating texture.". This doesn't seem to be the case however, with a simple fiddle it already shows that the texture is stretched (and loses its aspect ratio in the process): https://jsfiddle.net/qruppmzu/ Is it possible to actually turn this into a repeating texture instead of causing it to stretch? Currently I need to use a whole lot of ropes to populate the world, which becomes heavy on performance really quickly. I can generate / move the ropes as you progress through the world but having one rope seems like a better idea (if it works). 2. Even though the constructor allows it, the rope doesn't work with texture atlasses. How would I go about getting this to work? My framework depends on everything being in an atlas, apart from rebuilding it makes little sense to have one single sprite outside of the atlas because of a bug like this. See: https://jsfiddle.net/qruppmzu/1/
  7. Phaser rope offset texture drag

    Hi, it is possible to drag and offset the texture in Phaser.Rope along points?
  8. I have a rope very similar to the phaser example here http://phaser.io/examples/v2/sprites/rope However, mine has a simple spritesheet consisting of only 2 frames (256x96 each). This is the code that should add the spritesheet to the rope but it doesn't work: rope = game.add.rope(100, 100, "ropeImg", 0, points); I have used the same code in a sprite and the spritesheet functions correctly, so the image isn't the problem Thanks for any help
  9. A simple question with Pixi Rope

    Hi guys! I have an issue with the angle of the end points of the two strips meeting there not being the same Issue: http://screencast.com/t/zqEZS8L7v Codepen: http://codepen.io/jd...vmR?editors=001 Any idea how to fix this? Thanks in advance!
  10. Hi guys, I found an issue with Phaser.Rope, see please: http://screencast.com/t/zqEZS8L7v Codepen: http://codepen.io/jdnichollsc/pen/PqgvmR?editors=001 What could it be? Thanks
  11. Hello: First of all, I am glad to have discovered Phaser, and to be part of this community Phaser is a phenomenal library, and I think I am going to have a great time working with it. I am currently programming the initial screen of a game. I wanted to make a wobbly title (I am using a rope for it) with falling silhouettes behind it and a moving background. The code I am using is this: fondointro = game.add.tileSprite(0, 0, game.world.width, game.world.height, 'bgintro'); fondointro.fixedToCamera = true; var turistasintroTotal = 50; for (var i = 0; i < turistasintroTotal; i++) { var s = game.add.sprite(game.world.randomX, -200, 'Tourist'+Math.floor((Math.random()*7) + 1)); game.physics.arcade.enable(s); s.body.velocity.y = Math.floor((Math.random()*500) + 100); s.body.angularVelocity = Math.floor((Math.random()*110) - 50); s.tint = 0xFFFFFF * Math.random(); s.alpha = 0.5 s.autoCull = true; s.checkWorldBounds = true; s.events.onOutOfBounds.add(resetSprite, this); } var count = 0; var length = 918 / 20; var points = []; for (var i = 0; i < 20; i++) { points.push(new Phaser.Point(i * length, 0)); } ropeTitle = game.add.rope(2000, this.game.world.centerY, 'title', null, points); ropeTitle.scale.set(0.8); ropeTitle.updateAnimation = function() { count += 0.1; for (var i = 0; i < this.points.length; i++) { this.points[i].y = Math.sin(i * 0.5 + count) * 20; } };Strange thing: When I try it in Firefox it works like a charm, but when I try it in Chrome, the title appears with an alpha of 50% - even if I didn't specify that. Why does this happen?
  12. What is the difference between Rope and Tilesprite? In both cases it seems it's just a sprite with repeated texture.
  13. So I have a very small amount of experience coding games, only having completed a few tutorials online. I am trying to create a game that involves a rope dangling from a helicopter. I have the helicopter sprite animating and have a sprite for my rope appearing on canvas. I have looked up a few things but find it hard to understand the more complex code. If anyone can tell my in layman's terms what I should do, it would be a big help to me. Any help would be appreciated.
  14. Rope for Tarzan

    Hi, I read some topics here on how to create a rope system like http://www.html5gamedevs.com/topic/5881-trying-to-create-a-lizard-tongue/ My hero is moving around and jumping. When pressing a button a rope will be thrown in a direction (from my hero). I think I'll use only one sprite for the rope so it'll be non-flexible rope for the beginning. How to detect collision between my tilemap and my rope in order to fix the rope to the tilemap and transform my hero into Tarzan ? How to fix the rope to the tilemap ? How to change rope angle depending on my hero's mass and speed ? I'm using P2. I think it could be very usefull for a lot of us that kind of system. Thx
  15. Ladders? Ropes?

    Hey guys.. New to the game dev world but looking at a few frameworks. My main idea needs the ability to climb things like ladders or to jump/grab a rope. I haven't seen any examples of this but wondering if it's possible or if anyone knows where i can find a tutorial for this. Thanks for any help you can offer! -Freddy