jweickum's Forum Posts

  • Nothing changes in the debug mode. All values just stop.

    Collision checks before freeze are around 4/tick, same with poly collision.

    They both are at 4/tick at the time of freeze.

    There are no spikes in objects, events take up the most CPU at 2.3%.

    The only thing that doesn't stop is the audio. Which I have tested, by disabling all audio, and nothing changed.

    I have tried to disable a destroy event that seems to be the one causing it, but I can't see why it would do that.

  • I'm having a problem with a complete game freeze, and I've narrowed it down to a few events, but I'm not sure how to understand why the game freezes at these events in the debug mode. Any tips on things to look for?

    I'll post the file later if I can't figure it out, but for now I'm trying to work it out myself.

    It seems to be a destroy action/condition, that was working fine until I added some other layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for finding it. But I'm disappointed in how bare bones it is. I really wanted a project timer, and an editor timer. I'm irritated now that they said my idea already "existed" when what they have just barely scratches the surface.

  • I posted an idea about c3 tracking statistics for your projects. It was tagged as already implemented. Yet I can't find these statistics, anyone know where these are located?

  • another way is to just make a bool called NotFirstTime = false.

    then at the bottom of your sheet set it to true.

    then do OnCreated AND NotFirstTime or OnDestroyed AND NotFirstTime

    This is something i do now but was seeing if there was a better cleaner way to do it.

  • IIRC you no longer need to have a default instance in the layout editor at all anymore.

    Before, you could make a separate layout that wasn't used with all your sprite objects to set defaults, they just need to be on one layout in the project, not every layout in which it was used.

    That is amazing. I think this will help. Thanks!

  • Not sure what you mean?

    Does everyone have a bool called game start?

    and add that condition to every single condition containing a destroy check?

  • How are you guys destroying objects at the beginning of the layout? IF every object needs to be in the layout at the start for them to be called in game, how are you guys destroying them without triggering future destroy triggers?

    This is an example

    At layout load > destroy OBJECT 1

    ...

    ...

    ...

    ...

    On OBJECT 1 destroyed > create OBJECT 2

    How can I change this to not trigger the destroy event until later in the game.

    I know I can probably use a boolean to make it work, but that seems inefficient.

  • I'll try again but I seem to get a loading browser page that never loads.

  • That's a full version feature.

    Free version seems to be online only.

  • Is there a way to preview your game in the offline mode?

    It only seems to bring up a browser tab and try running through that. Any work around?

  • I use c3 on mobile quite often. I noticed that while on mobile c3 is constantly pushing the newest update, where as on PC I'm always getting a "Project made in future build" pop up. Is there a way to default to the beta build, my mobile seems to be on the beta build always. While on PC I have to go to the simple yet annoying route of getting to the beta build.

  • Well before I could explain further I found my answer from the amazing Ashley who not only knew the answer but could interpret my terrible explanation. (I wish I could blame it on English as a second language, but it's not)

    Anyway here was my problem and solution for anyone who might have this situation.

    I have a customer who comes in to my restaurant and wants to order a random item from my menu.

    The item is randomly ordered and stored as a local variable.

    What I was having a problem with was using that "string" to access another variable that takes care of prices for each item. This is where Ashley saved the day.

    I set up a dictionary with each item as a "key" with the price as the value.

    Using the "add to value" I can use "Dictionary.Get(Test_customer.Order)" as my value.

    This works really well as I can easily update values for each item.

    Thanks Ashley!

  • I want to add a value based on a global variables name matching the text in a text object.

    I have an object that has a text object on top that randomly picks 3 words. When a word is chosen i want it to add a value equal to the global variable of the same word.

    Something like global.word_obj.text would be nice but thats not a thing.

    I hope any of this makes sense.

  • Why not just use an collision condition?

    When CAR is COLLIDING WITH PARKING SPOT

    AND CAR SPEED is less than 3

    Set CAR to rgb(whatever color)

    Or change animation frame.

    To make sure players park correctly you can make the parking spot hitbox smaller so they have to be more on the parking spot to register the collision.

    Hope this helps