deadeye's Recent Forum Activity

  • Check out this thread, it should explain a few things:

    http://scirra.com/phpBB2/viewtopic.php?t=321

  • That method of using detectors is a common one when restricting actions like you're doing. In fact, that's pretty much how it's done.

    If you wanted you could create your own testing routine that temporarily places an object in the direction you're pressing, and if it meets no resistance then runs the rest of the movement commands as a sub-event. It would only take a couple of events to do, so I really don't see much use in creating a whole new collision condition type to take care of that.

    But hey, it's open source. Maybe someone will come along and implement it <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

  • The short answer is you won't be able to do what you want with the physics object right now. There have been a few suggestions to improve the physics made that would help with that, but they're not yet implemented.

    As for the ≠, you right-click on your condition and select "Invert condition."

  • Apparently that's what the Containers are for. I haven't messed with them at all, but you're supposed to be able to put your gun into your player's Container and it will move with it.

    I'll fiddle around with it some and see how it works.

  • To make something turn-based (like your card game) you just have to limit what actions can be done at certain times. This all depends on how you set up your conditions.

    For instance, if it's player 1's turn, obviously player 2 shouldn't be able to move his cards around. So add that to your condition with a variable like:

    -> M&K On Left Clicked on Family "playerTwoCards"

    -> System Compare "playerTurn" Equal to "1"

    + make an error sound

    There's nothing built in to Construct that automatically allows for turn-based play, you'll have to create it. Just as there's nothing that automatically allows for destroying an alien ship and adding points to your score. Those are game rules that you have to define manually.

    The best thing to do is plot an outline of how your game will work on paper. What are the steps you need to take during a turn? What defines the end of a turn? What information is it necessary to keep track of? Player health? Number of cards in the deck? Number of cards on the field? Create variables for these things as you need them to keep track.

    Even though Construct doesn't use a programming language, it still requires a programming mindset. Does player one click the "End Turn" button? Then set "playerTurn" to 2, and do whatever else is necessary to set up for the next turn.

    Good luck.

  • It's pixel shader 2.0 only. Sorry, I can't play your game.

  • I'm not having that problem, but I haven't installed .86.2 yet. I'll go do it and report back.

    Edit: Okay, I just installed .86.2 and I'm unable to recreate it.

    I make a sprite and add it to custom family "Test." Then I go to the event editor and make the condition "Test is Visible" and it works fine <img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" />

  • You have to add the Mouse&Keyboard object to your layout (assuming you haven't already).

    Then in your event editor you set up your event with the Mouse&Keyboard object like so:

    -> M&K On Left Clicked on cardSprite

    + do stuff

    Here's a little test .cap to show you how you might do it:

    http://www.mediafire.com/?blzyjuwnzfn

    It's very basic, but it works. Click a card, then click a space, and the card moves to that space.

    It works by putting the unique ID of whatever card you clicked into the global variable "cardPicked." Then when you click a space, it checks to see if there's a card picked (cardPicked > zero). If so, it looks up the family "Cards" and finds the one with the UID that matches cardPicked, and positions just that one. Then it resets cardPicked to zero.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works for me too. And yeah, it is pretty fun. That's one big-ass sword.

  • Is your image top-down, by any chance? Or is it like a 3/4 or isometric view?

  • Yeah, I'm getting "board" waiting for your mother to come, too <img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" />

    I kid, I kid! Please don't kill me...

  • Well, the SA thread has been getting some attention after all. Not a whole lot, and none from programmers, but at least it didn't die a horrible, lonely death.

deadeye's avatar

deadeye

Member since 11 Nov, 2007

Twitter
deadeye has 1 followers

Trophy Case

  • Email Verified

Progress

17/44
How to earn trophies