jaybien's Forum Posts

  • I have a custom sprite named crosshair and am setting it to my mouse position every tick. I'm then shooting bullets at the cursor whenever clicked. I chose this method for eventual gamepad support. But I am a bit lost when it comes to keeping the cursor 100 pixels or so from the player without going any further. What are the best ways to set it up to not conflict with controller-analog aiming?

    The closest I'm thinking about is like Nuclear Throne with it's controller support. My game's not really the same style but the crosshair is similar to what I was trying to do. Thanks!

  • Ah, I forgot I was trying a second sprite and trimmed it down to one. It's been a few days since I worked on it. Doh! lol. Anyway, that works brilliantly! Thanks much for the suggestions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sure, here it is

    w w w dot dropbox.com/s/ailjjcxueirwqjp/Roelda.capx?dl=0

  • I'm trying to make an event when the spacebar is held down, spin an object around my player object. I can move around perfectly with 8 direction behavior. As soon as the spacebar is held down, the secondary object starts rotating around as it should, but seems to shut off my movement. When the spacebar is released, I can move again. Any ideas what's conflicting? Thanks!

  • Nice, that works perfectly. Thanks oosyrag!

  • I have a function called enemy hit, which triggers when a bullet collides with an enemy. I'm trying to set the angle of particles to spray from the opposite side of the bullet hitting. How would I go about that? Thanks

  • oooh, I see what you guys are saying. Thanks so much everyone. This community is quite remarkable. I really appreciate the help and the example from blackhornet!

  • You don't need plugins for this, just pass enemy.UID in the function parameter (say, param(0)), then in the function you do Pick object by unique ID = function.param(0)

    So, I set the id to a variable when the enemy is hit, then in the On call function I put the hit enemy logic. Then I use a return function, right?

  • Ah very nice. Thanks Kali! and Linkman2004! That works perfectly. Now to try rexrainbow's plugin

  • Okay, that makes sense to me. But for the life of me, I can't find anything about UID inside of a condition or action. I must be blind

  • I had a game built and have things happen when an enemy is killed. Then I discovered Functions and starting converting everything over to calling functions. Now however, when I call my destroy enemy function, it kills all enemies on screen, when in the main event sheet, it just killed the enemy being hit. What am I doing wrong? Thanks!

  • Ah ok, I'll try that. Thanks!

  • Im trying to make an object spin constantly around another player controlled object. For example, I want the player to be able to move a sprite (let's call it spr_a) around the layout like a top-down shooter. I already am aware how to do that. But how do I make (spr_b) rotate quickly around it like a shield, wherever the sprite is moved. Hopefully that made sense lol. Thanks guys!

  • Wow, that works just as well, thanks much for the help

  • Hey everyone, I've just started using Construct 2, after some experience with Game Maker and Fusion 2.5. So far I love everything about Construct2. Just an amazing engine.

    Anyway, I was wondering if there's a way to create and align a row of instances like is possible in Fusion 2.5. For example, you create one placeholder square and right click it in CTF and then duplicate rows and columns. I'm sure Construct2 has something similar as it seems better in every way, but I cannot figure out how. Thanks for your time.