angryscientist's Forum Posts

  • I am making a survival horror top down shooter, with moody lighting. I already have a lighting system like the one seen here

    it simply uses the Destination Out blend mode and a solid black layer.

    I also have the Shadow Caster and Showod light plugins in the game. But I have ran into a ascetic problem: Basically the lighting created via the 'Destination Out' technique creates very smooth shadows. (Which I love) but the shadow caster plugin creates very sharp shadows with no gradient. Is there any way to create smooth shadows with the shadow caster plugin?

  • LaurenceBedford I think you misunderstood my question. I was not really asking about how to make weapon system, I was just using that to explain my problem. I really needed help with converting text to a integer. But thanks anyway.

  • blackhornet Thanks. I figured there was a simple way.

  • I am trying to make a gun system in my game, that is extremely mod friendly. To do this, I plan to access a text file via the AJAX plugin, and then have the text in the file effect the properties of the gun.

    For example you could put "BulletBounceFalse,CanAimTrue,ShootPhysicsObjFalse" Ect. (I Hope that made since)

    I have already made a functioning prototype, that works pretty well. But I have ran into a problem that I cannot find a solution for. Pretty much I would like you to be able to put (for example) "Damage10,Accuracy5,Kick7" Ect. I simply cannot find anyway to convert text into a number. I do not know if this is even possible in C2, and I would appreciate any help the anyone could provide.

  • lamar I will try that

  • I am making a top down shooter, with controls/aiming similar to Hotline Miami. And I would like some of the weapons to shake the cross-hair, (The mouse) to simulate recoil. I was wondering if it is possible to set the mouse's position in construct 2.

  • The most realistic way is using boids algorithm. There is an example for that in forum. Alternatively simple hack would do the trick:

    I love the example CAPX you showed. It is exactly what I was looking for! Except for one problem. The code you provided does not work with instances of the same object. If you know a way to make this work with instances of the same object, I would be thrilled!

    PS I tried using Boids flocking algorithm. But it did not produce the type of behavior that I wanted.

    PPS Sorry for the response being so late.

  • I am encountering the same problem in my game! I have not yet found a solution but I m actively trying to solve it. I will tell you if I find a solution.

  • Have you tried using containers?

    Containers, work well, for one set of objects. While "Object Variable" Would work for many objects.

  • I have been using construct 2 for a long time now. And there is one feature, that I have wanted my entire C2 career. And that feature is, "Object Variables". What I mean by "Object Variables" is, a new type of variable, that could store an object in data. If you don't understand, let me give an example. You create a object called "Weapon". You than create a Object Variable called "Holder". You than spawn, "Weapon" and set "Holder", to a object called "Player". You than say, Every Tick, set "Weapon" Position, to "Holder". This is obvious, a crude example, and I am sure if this feature was added, the community could do so much more! This might already be possible in C2. If this is already possible, I would love somebody to tell me.

  • How so? It sounds to me like you just need 1 trace object and a for loop. Or is there a reason you need to keep information about a trace after you apply damage and effects?

    While I could create one weapon with a loop, I plan on having multiple enemy's, all also using hit-scan weapons. I believe this could not be done with a loop.

  • Will you try to add support for multiple arrays? I know you can do it by create multiple Trace objects. But I am trying to create hit-scan weapons, and with guns like a shotgun, to is very inconvenient to create up to 10 different Trace objects.

  • Would a plugin suffice ?

    Yes! A Plugin would work great.

  • I have been using C2 for a quite a while, and I have even bought a licence. But one big missing feature is Ray-Casting!

    I know there are a couple people who have already made a Ray-Cast with the existing features of Construct 2, most notably Sqiddster. But there are a few problems with using this method. For one thing, is is very difficult to create multiple Ray-Casts, running at the same time. For another, when I did manage to create multiple working Ray-Casts, the frame rate dropped.

    While a wide variety of ray-cast features would be nice, there are a few essential features that any Ray-Casting system would need. First off all you would need to be able to set the length of the Ray-Cast. You would also need to be able to access the length of the Ray-Cast, when it hit, as well as the hit position. It would also be nice to be able to visualize the Ray-Cast.

    I would be amazingly happy to read the patch notes, and find out that a Ray-Cast feature was added to Construct 2! and I am sure many of you feel the same.

    | |

    If you have any questions, or comments please leave them V below! V

    ( Sqiddster's post ---> https://www.scirra.com/tutorials/902/li ... raycasting)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post