RTCook's Recent Forum Activity

  • Shindoh

    Sorry I glanced over yours and didn't even think to try it before, that was my bad.

    Would the Bullet pick replace the PV? I tried implementing it, I could be doing it wrong but I had another problem. The bullets don't attract to the gun now, but rather they all grow along with my Charged growth of the bullet. All of the ones on screen grow, that could easily be with my Growth event and where it's at.

    Here is what I have.

    +Left Mouse pressed

    ++GV 'shotDisable' = 0

    ->Samus spawn Bullet (@ImagePoint)

    +Right Mouse down

    ->Set GV 'shotDisable' to 1

    ++Trigger Once

    ->Samus spawn Bullet (@ImagePoint)

    ->Bullet Set speed to 0

    ->Bullet Set 'Charged' to 0

    ++Bullet Pick closest (@Samus.Angle, )

    ++Bullet Value 'Charged' = 0

    ->Bullet set position samus (@Imagepoint)

    ->Bullet angle

    ++Every 750 ML

    ++Bullet Height < 90

    ->Set height to Bullet.Height+20

    ->Set width to Bullet.Width+20

    +Right Mouse released

    +Bullet Pick closest (@Samus.Angle, )

    ->Set GV 'shotDisable' to 0

    ++Bullet Value 'Charged' = 0

    ->Bullet set speed to 500

    ->Bullet set 'Charged' to 1

    EDIT: I just added to Pick condition to my bullet resize event. It worked, but it also bugged out if I shot multiple times then held down the charge button. It attracted all the bullets, and they spazzed out around the gun. I know this is probably due to the same condition in 2 diff events.

    EDIT2: I tried the Pick Closest method without the PV and it is still doing what I mentioned above. It is dragging the closest instance of Bullet to Samus then releasing it when I release the button. It is also charging all instances of Bullet on the screen because of my Resizing event for the charging action.

    I also am not sure if I am doing it right, but I have the Pick Closest to conditions as this on both events:

    Bullet Pick Closest to Samus.ImagePointX("Cannon"), Samus.ImagePointY("Cannon")

  • Didn't work sadly, and I also gotta work on not letting the Left Mouse (single shot) be triggered when a Right Mouse (charge shot) is still active. It's letting me continue to shoot regularly when I have the Right mouse held down.

    EDIT: I got the Left Mouse button to stop being called by just adding a GV to it. Checks if 0, if not, can't fire. Right Mouse sets the GV to 1 until released.

    Now my only problem is getting the Normal shots to not attract to the weapon if I press the Right mouse button. I already have a charge working along with a set time it is able to charge.

  • That method worked best for me, but it is still attracting all instances (From the Single shot "Left Mouse") to the cannon if the Right Mouse is pressed for charging. Is there anyway to block the "Set Position" from working on the "Left Mouse" click event if it is fired then a charge right after?

  • I tried this, and it would cause the bullets on the screen to gravitate back onto the Cannon if the player hit Right Click too fast. Also it seemed to me like if I used Trigger Once along with an Always statement, that the bullet would only attach once and the Always statement would be ignored. I want to say I tried this but I will try it again.

    EDIT: Yea just tried it and it only tracks to the cannon once. Seems like the Trigger once is called and then nothing else in that event runs until it's called again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone, first comer here with some troubles (What's new right?)

    Me and some graduate friends of mine from College are broadening our knowledge of different engines and decided to give Construct a try (Experienced in UDK, Unity, Source, & Flash). I haven't really coded anything in a good while as I focus on documentation, textures, and level design so this is helping me get a hang of it again. Enough of my backstory though and onto my problem.

    We are currently working on a top down Metroid game seeing as there hasn't been many attempts at it (1 in GM). We have everything down more or less minus the coding on this project and I have already hit my first stump. I know how to fix it logically and could probably do it with actual code but as I'm not all experienced with Construct, I'm stuck.

    Basically I am trying to get the Charge beam to work with a held Right Click. At the same time I need to keep the shot sprite on the image point as Samus rotates (360 movement.) What is happening though is the sprite just keeps being generated. I have been able to get each to work on their own, but not at the same time.

    My best attempt was this:

    Right Click pressed DOWN

    Trigger Once

    ->Spawn Bullet samus (@Cannon Point)

    ->Set Bullet Speed 0 (Keeps bullet still)

    Right Click RELEASE

    ->Set Bullet Speed 500 (Normal shot speed)

    That stops the bullet obviously, then I try to use an "Always Tick" for the setting of the cannon, but then that just drags all the bullets to the Cannon (which I can probably use for other things.) On top of that, when I can keep the bullet there, it doesn't want to shoot in the direction Samus is facing. I think I know what to do to fix the directional issue but help would be appreciated regardless.

    Charge_Test

    I am using the Magic Cam plugin for camera if that matters. WASD to move around, Samus tracks mouse to aim, Left Click is single shot, Right Click is meant for Charge shot. File is used mainly for testing purposes, the problematic area is bookmarked.

    Thanks in advance!

RTCook's avatar

RTCook

Member since 27 Feb, 2012

None one is following RTCook yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies