jweickum's Forum Posts

  • 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

  • You would simply keep a count of destroyed objects in a global value from layer 1. Then when you go to layer 2, using the ‘on layout loaded’ event you create the number of objects based off the number in the global value.

    Andy

    Appreciate the help guys! I set two variables (OLD, NEW)

    When I destroy the object in layout 1 I add to the OLD variable.

    Then when I move to layout 2 I use a REPEAT action to create an object,

    REPEATED (OLD - NEW) number of times.

    Then as each object is created it adds 1 to NEW.

    I do the reverse so I can move between layouts without creating or destroying extra objects.

    This is how I figured I could do it, let me know if you guys see any problems with this method.

    So far no bugs.

  • Hey Ashley are there any plans for bringing back tizen support? Or is there already support?

  • I want to destroy an object in layout one, and for every object destroyed in layout 1, I want it to create the same amount of objects in layout 2.

    If you guys know of a way to do this differently than what I'm trying to do, I welcome all ideas.

    Right now I have a global variable, that when changed it adds an object to layout 2, but will only work once, and only when layout 2 is loaded.

  • I want a variable that is triggered in layout 1 to spawn an object in layout 2.

    The problem I have is when the variable is triggered it only triggers once i actually load layout 2.

  • That's really vague. Not sure what you mean.

    You can add text boxes by double clicking on empty layout space and looking for the text function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do I update a different layout without loading the layout. I want to change objects in a different layout, but the changes don't seem to update until the layout is loaded.

    Is there anyway to force these updates?

  • I think the reason you can't do that option is so people don't make the whole game then buy 1 month and sell the game.

    Construct gets $100 if they force you to buy 1 year vs getting $10 if they allow per month. Or whatever the euro equivalent is.

    I think a nice compromise would be, to not allow monthly users to sell their games until a year subscription is bought. Just my two cents.

  • Never mind. Big still available in r128. It seems to occur after duplicating the frame and dragging off the screen.

  • Disregard. I believe r128 just patched my problem.

  • I use c3 on my phone at work. I've been getting a problem with using the animation editor that the app will freeze until c3 closes.

    I can't seem to reliably reproduce this because it's random. But it only happens on mobile and in the animation editor. It's so bad that I've been saving my project every single time i have to open the Sprite editor. Any help would be grateful.

    I'm using r120 stable.

    I'm on a galaxy note 9.

  • I made an endless runner but im having problems with black lines between objects when they reset their positions.

    The first image is the start of the game. The second being after the objects have reset their positions back to the beginning.

    This is the only script i have for these objects. I probably have my math wrong. But i can't see where it's wrong. I've done multiple variations of when to remove object and where to put it back.

  • Does anyone currently use C3 on mobile?

    I currently use C3 and am just looking to see if anyone else has had problems or has ideas for better improving mobile.