jweickum's Forum Posts

  • This might seem confusing, but I'm not sure how to phrase this question.

    For example, You want to make a restaurant game where you construct a burger from individual objects.

    I would like to then "Snapshot" this grouping of objects into a single object. Instead of creating every single combination of objects, is there a way to have the game make an image of grouped objects?

    I can clarify more if needed.

    Thanks guys

  • I appreciate the help, but I figured it out when I woke up this morning. A break was all I needed to figure it out. I have randomized health values. And I just have an animation frame change at 30% of the characters health, and I just did "Currenthealth < 0.3*MAXhealth.

    Thanks again.

  • I'm trying to trigger an event when the health bar reaches a specific percentage of the full health amount. I have done this before with static health numbers. But I now have objects with randomized health values in instance variables. Any suggestions?

  • I am trying to use families, but sometimes the code works correctly and sometimes they don't.

    Families: Power source, Power Switch, and Power System.

    Power source is overlapping Power system => Turn on switch

    Power switch is on && power source is overlapping => Power is on

    I have a couple different power systems and when I run the code like this it doesn't discriminate which power system is actually getting the power.

    I also want to make a code where when you take the power source off, it turns that respective system switch off, but it turn all the switches off when I use families.

    I have resorted to writing events for each individual switch to make it work for what I need.

    tl;dr How do I make these families work correctly?

    Let me know if you need more clarification.

  • This is how I do it, but there might be a better way.

    HP is greater than or equal to 100 - Set to 100

    (This is a compare variable condition)

    Let me know if you need more clarification.

  • That worked, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a new Intel XDK tutorial? I'm using the old one but when I test, all I get is a white screen saying "Hello, Cordova.". Anyone else have this problem?

    Intel version 3522

    C2 version Latest but can't find the version number.

  • Has anyone ever published to physical CD? If so what did you go through? I'm looking to get a physical copy of my first game so I can keep a history of games I make, good or bad.

  • It looks like either PlayIsDead isn't a global variable or it's a text global. I don't see where you change the variable from "false" to "true". I would specifically make an action where it changes the playerIsDead text from "true", back to "false", not just a reset global variable action.

    Haven't tried it out myself yet, but let me know.

  • It's not really a question for this forum, but I don't mind answering.

    This should work:

    - select the shape you'd like to export

    - choose export as png

    - choose selection instead of drawing

    That worked. Thanks so much!

  • I have been making art in inkscape, but when I export to C2, it all has white backgrounds. How can I make it have transparent? Not even sure if this is something that I should be asking here. Maybe the inkscape forums?

  • You can set the purchase button to a variable. Once pushed, change the variable from, let's say a 0 to a 1. Make the purchase button only clickable when the variable is equal to 0.

    Let me know if this helps.

  • jweickum the .capx is in the link above your post, you just need to delete the spaces.

    I deleted the spaces, got a 404.

  • The .capx didn't work. You can add the file straight from your computer.

    I re-read your problem, and I don't think that the variables, will work.

    Once we get your .capx, then we might be able to figure it out. How are you resetting your layout?

  • I figured it out. Each of the frames gets a frame speed, and I accidentally changed one to 8. Changing it back to 1 seemed to fix the animation loop.