Magnatolia's Recent Forum Activity

  • Thanks for that! Works perfectly, I was looking for it by the sprite it was attached to.

  • Hi guys,

    I'm stumped. I want to increase the gravity for my player by 90 every 30 seconds, easy done. However I want to put this in an if statement so I can set an upper limit for gravity, otherwise it just gets ridiculous. Yet the only event platform options seem to be compare speed, and several is ones like falling, jumping etc.

    Any thoughts?

    Thanks!

  • I know nothing about sine function but can't you have two animation frames (with animation turned off), just duplicate and mirror the first frame. Then call the relevant animation frame by using the 'set frame' action.

  • So you have an object named pontos, and a variable named pontos (which is now called score). I don't know hwat AsJSON is but I've never used it although I've never tested my high scores beyond the built in emulator

    Are your objects on the same layout? I was playing with the vertical jump template and mine wasn't working. Turned out the text fields I wanted to update were on a different layout so I had to move my WebStorage actions and events over to that layout.

    Maybe set up a text field on your main layout and see if it updates? Have one with the current score and one with the high score. Also small thing but should your highscore variable start at 0?

  • Hey guys,

    I've created a vector image (png) in Inkscape and exported with transparent background. Kept it at original size as normally you can resize once the sprite is loaded in. I'm using a template which uses 'set scale' which apparently 1 equals 100% of the original size. Is there another way to do this? Or do I have to find out the % ratio I have currently and add to that? I worked out manually that my resize was 0.15 so to gain a 10% increase I just made it 'set scale 0.165' but it would be so much easier to A)have the about %'s, and B) Have the original size stored somewhere in the properties pane without having to open the actual sprite screen.

    If so is it possible in a future release to include in the size drop down in the object properties, the % of original Width and Height? This would make it way easier to manage this sort of thing.

    Also, I even tried resizing the original png to 41 x 41 and when I import it, it gets resized to about 5 x 5. But when I click 'Make 1:1' it comes out pixelated....any ideas?

    Thanks!

  • Thanks guys, this works but the problem is I would still need to destroy an instances of objects currently existing. I can just code that in.

  • Hi guys,

    I added a second layer with Game Over written on it. Naturally everything else keeps going. How can I stop everything? Do I need to manually stop everything one by one?

    I have a variable to determine the drop rate of enemy sprites but it's the min value for a random number generator which if I set that to 0 would result in int(random(0,5).

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the help guys. I've now successfully got my thruster sprites attached (although I couldn't figure out the container option).

    However, now after I click on an enemy sprite I've added sprite3.destroy to destroy the thruster sprite when the enemy ship is destroyed. The problem is this destroys every instance of sprite3 on the screen?

    Capx is here.

    Also, would you have any tips or tricks to make this a viable commercial option? First game so any advice is appreciated! I'm adding music, sound effects, and replacing the green ground sprite with a cityscape. And will plan to sell it for free, with in-app purchases.

    Thanks heaps!

  • I'm not really sure, I haven't done any pinning of sprites to spawned objects. Collodium, it's just the one thruster sprite but would be spawned unlimited times. LittleStain, I looked into containers and that looks amazing except I can't see a way of positioning the extra sprites to an image point. So the thruster sprite loads but it loads smack bang in the middle of each ship sprite. Is there a way around that?

    Also, here's the capx. Any help is greatly appreciated!

    Thanks!https://www.dropbox.com/s/dib7adr7u6bseu4/Space%20Game.capx

  • Hi,

    I have enemy sprites spawning every 1-4 seconds and am trying to figure out how to pin a thruster to them. Works perfectly when it's pinned to an already existing object.

    I have: For ever 1-4 seconds, spawn enemy sprite, set bullet to 90 and speed to a variable. Set thruster sprite to visible and pin to enemy sprite (Position & Angle).

    What am I doing wrong?

    Thanks heaps!

  • Hi guys,

    I'm looking for software that has a preset library (additional libraries, even purchasable is good) that allows you to create 2D game art. For example you might have a library of stars. It would then allow you to change the shape, size, add a border, etc.

    There's similar packages out there for particles which I've used to create an animated shield, small explosion with cloud effect, and a large ground explosion.

    Thanks heaps!

  • Hi guys,

    Say I want a laser/lightning effect to occur on a platformer. I could have this as a sprite and make it visible, but I'd really like to make the sprite visible over say 0.5 seconds. So it draws the sprite from top to bottom over that time so it actually looks like time has passed when the laser activates.

    Or is there a better way to do that sort of thing?

    Thanks!

Magnatolia's avatar

Magnatolia

Member since 29 Dec, 2013

None one is following Magnatolia yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies