5ifty2wo's Recent Forum Activity

  • Okay, so after getting this working last night, I load up the game this morning and it still works. Then I decide I want to add in a second fire mode for the main character - mainly just to see if I can - and attach a light source to that as well. This all works, only if you fire for longer than a second or two all the lights stop appearing. This happens on both attacks, and they won't re-enable until you fire the other attack after waiting a bit.

    Is there a limit on how many sprites can be on screen at any given time? While they are super simple and don't cause any sort of performance hit, it's the only reason I can see for it to be doing this. Unless i've messed up something in my events log...which is probably just as likely really.

  • I made a new layer above the main game one, and made it black rather than transparent. Then created a new sprite on the same layer, which was just a white circle, set the blend mode to "Destination Out", and then made follow the player - That's how his lighting works.

    The projectiles are sorta the same thing. Each time the mouse is clicked, it starts shooting bullets with a slight spread. So I made a smaller white circle on the "Lights" layer, set it to "Destination Out" and set an event for whenever a bullet was created, it would create this light ontop of it. This worked, but the light source stayed in a straight line while the bullets would veer off at different angles.

    Then I made it so that every tick, the smaller light had it's position set to the bullet, and this worked. I don't know very much about programming at all so there might be a better way and it was a lot of trial and error but it works :)

  • <img src="http://i.imgur.com/55YQuXQ.png" border="0" />

    I managed to get it working just a couple of minutes ago too haha.

    Thanks for all your help :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah thanks, i'm working towards something that's starting to work now :)

    edit - I've managed to get bullets to sort of have a lightsource, but the firing pattern is a little random so sometimes the light goes in a different direction to the bullets...frustrating.

  • I can't find anything in there that gives an object a light source of any kind. It's just blending options, distortion and colour effects.

  • Hey there guys,

    I'm currently making a short game named Spaceship Superstars, and it's just a simple top down shooter game. I wanted to experiment a bit with darkness, so after a couple of tests I ended up making a sprite that was just pure black with a bit in the center erased, and pinned it to the player. This ends up giving me a sort of spotlight effect and works fine, but the player also fires out blue projectiles that I decided I want to have light attached to as well.

    <img src="http://i.imgur.com/SpWwMqS.png" border="0" />

    This is a shot showing what it looks like and showing one of the projectiles on screen fading into the shadow. I realise that in order to make it work as i'd like, I would presumably have to change the method i'm using to create the darkness at the moment. Unless I can do some trickery with layers that I don't know about yet, that is.

    What I was thinking, and I have no idea if this is possible, would be to put some sort of ring of transparency around the bullet projectile that only affects one layer, making it so when it passes over the darkness it masks the area it's travelling over, but I don't know how to do this, or if it would end up affecting all the layers rather than just one.

    I have no clue, really. TLDR; I want to make the bullets have a light source, is this possible?

    Thanks for any help.

  • Well, upgrade to 1.8 then :D

    http://www.scirra.com/construct2/releases/r118

    Install it to a seperate folder if you don't like beta's

    and ofcourse i can make him fly backwards instead:

    https://dl.dropbox.com/u/45711709/knockback2.capx

    Ah this is perfect! Thank you so much! :D

    Exactly what i've been looking for. At the moment it was so easy to get chain hit to death, but with this hopefully it'll make it easier on the player. I'm a complete newbie to this all so i've just been trying random stuff that I feel should work but didn't, haha. Thanks again!

  • I couldn't use your example file (says I need construct 1.8 and I only have 1.4) but I managed to get it working thanks to what you posted, so thank you!

    Would you happen to know a way to make the player fly backwards, rather than just jumping instantly? I can use this just fine, but it would be useful to know for future reference :)

  • Hey there guys! I'm currently working on a pretty simple side scrolling fighting game (think Streets of Rage, Golden Axe, Castle Crashers etc) and i've hit a bit of a problem. The main character has three hit points, and each time you take damage i've managed to make the character fade out for a half second, but one thing I really wanted to do was to make it so once you took a hit, you jumped backwards a bit.

    I did have something working with a weird bit of Player.X(-40) coding or something similar (I don't know the first thing about coding, haha) but it didn't work. I feel like i'm missing something simple, but any help would really be appreciated!

    5ifty2wo.co.uk/Ghostwiz2/index.html

    This is the current very barebones testing version that I threw together just to show a friend, but i'll put it here just in case it helps at all.

    (arrow keys move, A is attack, all you can do at the moment is run, jump, kill, and die)

    Thank you for any help you can give me!

5ifty2wo's avatar

5ifty2wo

Member since 9 Feb, 2013

None one is following 5ifty2wo yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies