Sprite pushed out on creation - REWARD offered!

0 favourites
  • 10 posts
From the Asset Store
Daily Rewards and Timed Rewards secure 24 hour timer
  • I'm working on a top down shooter but when the player sprite overlaps a solid object such as a wall and fires, the bullets spawned are pushed out of the solid. Is there any way to avoid this? I've tried setting position after spawning and various other things, but no joy.

    I'd assumed that this was a feature of Construct, but it doesn't seem to happen for enemy bullets so now I'm not so sure.

    There's a link to the game at the moment below

    here

    ASDW for movement and right-arrow is fire at the moment. When you try it you'll see as you near a wall the bullets spawn far away from the weapon.

    Any help would be gratefully received as I'm desperate! In fact, whoever gives me a solution can have a special character in the finished game ;)

  • Are you using any sprite detector to move around?

  • There's the player collision, with the sprite pinned to it, then there's also a detector whose position depends on the direction of movement - it's there for detecting "cover" walls (holding up near them takes cover, then down again to exit).

  • Fixed the damn thing! Seemingly the sprite object was corrupted somehow, it sometimes wouldn't let me duplicate frames and such so I should've considered this sooner. Created a new sprite, imported the old images in and it's all fine! Phew, relief.

    shinkan Seeing as you're the only one attempting to help I'll still honour that reward if you fancy it ;)

  • haha, should I be scared? ;P

  • Haha no no, I was just willing to put a special character in the game for whoever solved the problem! Oddly there were some weird Z order issues with the old sprite which seem to be sorted now too, glad the whole ordeal's done with and I can continue with it.

    Oh also, if you tried it I'd love some feedback.

  • Loading/start/option screen is awesome. And I like your pixel style.

    Gameplay... well I wait for some improvements ;)

  • Thanks! Yeah, I've barely started adding all the gameplay mechanics, just got the basics down.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Looks great so far. I love the title screen and the pixel art. Well done!

    Issues:

    1. Enemies are lined up. You kill one and you find out down the road you killed several more. If you move up and down and spray your weapon, you can kill all the enemies in the level without advancing. An easy fix is to make it where the bullet doesn't travel past the view of the screen.

    2. Player gets stuck ducking against a wall. At fist, I thought the player automatically ducts when shot at. I thought that was cool, but it only happens if you next to a wall. I'm not sure if there is a key to press to let go, but I just press 's' (down) multiple times until he moves away from it. It's troublesome.

    3. Sprite overlap issues on level 3. Player flickers when against the wall.

    4. There's other things like chopper not attacking, first aid kit not healing and so on, but I understand the game isn't finished.

    Other than that, I love the retro feel of the game. I like the celebration the enemies do after they kill you. It makes me want to play again and get him back. It also makes me play harder because I don't want them to celebrate my defeat. Maybe add random celebrations, like having them point and laugh at you? I also like the rain effect on level three.

    So far so good. I hope you post a link when it's complete!

  • Thanks for the feedback, I really appreciate it :D

    1. Not intentional in the original design, as such bullets now only live just beyond the screen, mostly avoids this. Also, the range at which enemies become active needs tweaking.

    2. Known bug, currently the detector will move to the left or right if you press those keys while in cover, and pressing down while the detector is over cover is what leaves it - so the detector being moved messes this up! As such if you find you can't exit cover pressing up to place the detector over cover and then down again fixes it.

    3. Fixed! The sprite animation data was corrupted causing the bullet spawn issues and the Z-ordering.

    Haha I'm pleased you like the celebrations - it was a silly idea I had but one that turned out quite charming :D I like the idea of different celebrations though, I may look into that. Maybe different celebrations for different enemy types!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)