kittiewan's Recent Forum Activity

  • There are so many ways to do this, it would really help to see your .capx (or preferably a simplified version of it.) To give you specific help I need to know, for example, how you are storing inventories. Are you using arrays? (I would.)

    As far as managing the purchase you might try something roughly along the lines of:

    system-> repeat NumberofCustomers times

        system-> pick each product

               QuantityPurchased = int(random(0,QuantitySellerHasOnHand))

    Then you'd deduct the quantitypurchased from the seller's inventory and add it to the buyer's inventory, and increase the seller's cash and decrease the buyers cash, etc.

    Hope that helps at least a little!

  • The first three parts of the tutorial Creating a Memory Match Game with Construct 2 are now up. One more to go and then I'll decide whether to do a tutorial on the framework.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm using an array instead of a hash table, but the easiest thing for you to do right now is just use a boolean instance variable.

    <img src="http://dl.dropbox.com/u/57899112/Mikey_Castle_Key.PNG" border="0" />

    Edit: Still haven't heard from scidave...

  • In my tutorial I used the tool to embedd youtube videos, but they just appear as whitespace and give an error when you hover over them that they weren't loaded. Is there something special that needs to be done to include a video?

    Also I actually clicked submit on my tutorial by accident. Only the first two parts are up and it will be a few days before the others are up. Is there any way to roll back to the submission? It isn't a big issue since I fixed it up as best I could for now, but I'd like to know for future reference.

  • Much better!

  • I don't know how you want to handle enhancement requests, so I'm just treating them as if they are bugs. Is that how you want them handled?

    This one is pretty simple, but in no way urgent. In the title bar, is it possible to display the name of the project after "Construct 2" and before the name of the layout/event sheet? The problem is that when you have several copies of C2 loaded it isn't always easy to tell which is which when you want to set focus, as in this picture. (This picture isn't the best example, since one layout is empty and one has a picture of trees, but much more often it is pretty tough to tell.)

    Ideally the title bar would say "Construct 2 - <Project name> - <Layout/Event Sheet name>

    <img src="http://dl.dropbox.com/u/57899112/C2HeadingRequest.png" border="0" />

  • I am not 100% certain what you are trying to achieve, but I think the picking problem has to do with your already having picked some tactical2 objects in a previous event. For each just uses each of those currently picked objects maybe?

    In order to test all of the tactical2 objects I modified event 8 as shown and tactical2 objects started moving (although I think not the first one I placed but that might be for some other reason.)

    <img src="http://dl.dropbox.com/u/57899112/PickProblemEvent8.PNG" border="0">

    EDIT: This change does seem to break your logic to make tactical2s keep their distance

    apart, since each tactical2 on the same line goes to the exact same

    position as the others on that line. But hopefully it gives you a place to start working from. I think that if you nest your events by creating sub-events instead of putting them in one event things will work better. If you're trying to limit your events to under 100 because you are using the free version, that could eventually create a problem since each sub-event counts as an event.

    For Each has generated confusion for many, including me. Here is a tutorial that Arima posted on using For Each.

    I don't know if it clears up anything, but I do know that changing For Each to Pick All made tactical 2 start moving.

    EDIT 2: You can also eliminate the For Each and Pick Every entirely. The system will test every tactical2 to see if it satisfies the other conditions.

    <img src="http://dl.dropbox.com/u/57899112/PickProblemEvent8V2.PNG" border="0">

    EDIT 3: I also don't think you need the On every tick event in that first Movment 2 event. Anytime the rest of the conditions become true it will trigger.

  • I hadn't noticed it before, but it was true in R82 as well. In the properties panel the category for layer, angle, opacity, position and size is labeled [missing]. An effect of localization efforts, perhaps?

  • I honestly have no idea. I suspect it is intended to be set on a trajectory and continue on it unless the trajectory is reset, but I could be wrong about that. I haven't used bullet except for enemies, and in one case where I redirected the bullet's angle based on mouse clicks. I used the other way for climbing ladders in a platformer and knew it would allow a change in X as the Y changed.

    If char has a bullet behavior you could change char.bullet.angleofmotion when the arrows are clicked and the

    char would look like it was changing lanes gradually.

    Something like:

    char -> set bullet angle of motion to clamp(self.BulletAngleOfMotion - 10, -110,-70) degrees

    for the left arrow and

    char -> set bullet angle of motion to clamp(self.BulletAngleOfMotion + 10, -110,-70) degrees

    for the right arrow.

    I don't think that's what you're looking for, though.

  • Are you using the bullet behavior for anything other than crawling up the screen?

    If not, you can just decrease char's y every tick instead of using the bullet behavior.

    System -> Every Tick      char set y=self.y - 1

    To make char move faster subtract a bigger number; to make it slower subtrace a smaller number.

  • If you change the order of the two sub-event conditions it works.

    The problem you have is that when char's X=60 clicking on the right arrow moves char to x=160, but then, surprise! The next condition is true too, so char is immediately going to 260.

    By changing the order if char's x=60, the condition of the first sub-event isn't true, so it goes to the second sub-event and moves char to x=160 and then exits the event.

  • In the Projects panel click on the name of your project (at the very top of the tree.) This brings up the project properties in the Properties panel. Then change the First layout to the layout you want to be first.

    (Alternatively you can click on the layout to bring up the layout properties and toward the bottom of the Property panel you'll see a link to the project settings where you can change the first layout.)

kittiewan's avatar

kittiewan

Member since 13 Nov, 2010

None one is following kittiewan yet!

Trophy Case

  • 14-Year Club
  • x3
    Coach One of your tutorials has over 1,000 readers
  • x3
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

17/44
How to earn trophies