codah's Recent Forum Activity

  • codah

    Family instance variables in my case,sorry for mistake

    The general case for swapping values is

    temp=A

    A=B

    B=temp

  • Do you actually mean local variables or instance variables?

  • codah, haha I don't think I will be doing any text as I have absolutely no idea of how to determine the json settings for them to be used as text sprite. Using text simple as sprites I don't think is efficient in terms of memory and performance. If you mean menu type backgrounds, I could do it based on the themes of the button though. Hmmm...I will take a look at it when I am free and see what I can come up with.

    Actually I created a 9patch using your graphics (as a trial) and it works fine

    Edit: I didn't mean actual text, just some backgrounds like for message boxes.

  • Well it's all already in R175.

    The view is not centered on the condition/action itself but at least when you have found the event/action you're looking for and selecting it, you have the event number on the left column that lets you know where it is in the current even sheet.

    I'm using 175 and I haven't seen what I've described. It's a small thing that would make my life easier many times a day Thing is, the event might be buried in groups, subevents, etc. and you still have to go 'searching' for it. Even a Ctrl-G "goto event" would be nice.

  • Edit: decided to keep adding to the first post.

    Some simple but useful editor features I'd like to see

    1. Search that keeps the found item(s) in view after uncollapsing.

    a. Perform a Search in the event sheet

    b. Select an event/action

    c. Clear the search

    d. The selected event/action is still selected and visible

    Item d is the important part

    2. Search and replace of text in the event sheet

    I'm referring to quoted text, i.e. strings.

    e.g. changing the name of a function is tedious if there are many calls. Although from now on I will follow my own advice and use a constant text variable for each function. But that's just one example.

    3. 'Simple' search in the event sheet

    i.e. Just highlight the next found item in the event sheet, without collapsing. WITH A HOTKEY PLEASE e.g. F3 Find Next

    3b. Highlighting of all found text

    If I search for MyDumbVariableName123, please make them all stand out on my event sheet.

    4. Hotkeys for things like alignment in the Layout editor

    e.g. Alt-LeftArrow to align left edges, etc.

    4b. Align by object centres (vert/horiz)

    For aligning objects that aren't the same height/width.

    5. Less confusing enable/disable of events/actions

    I'm not saying I have the solution, but it does drive me to distraction sometimes.

    6. Breakpoints that work

    I guess there's some low-level reason why we can't set breakpoints on 'triggered or looping branches' but it would be nice.

    7. 'Default' sprite a bit smaller

    Why so big, 250x250? 50x50 would be fine IMO. Or an option to set the default size..

    8. Search all event sheets

    If we follow good practices and have modular event sheets, it's impossible to search them all at once (e.g. where did I define function xyz?) I'm using notepad++ at the moment to do this (with a hotkey to trigger it within C2).

    That's all for now

  • You might ask yourself why you need so many globals. You might be able to declare them inside the events that use them, or as instance variables. Just a suggestion.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You might need to provide a capx. There's a few things that can go wrong. Try this - add an event when path NOT found and see if that triggers.

  • You can have a Local variable under a function definition, then it will be accessible from function sub-events (from the var definition onwards) and not from elsewhere. What did you have in mind?

  • Thanks for sharing these. Now some text/message backgrounds please

  • The MoveTo behaviour might do what you want.

  • You need to provide more detail. Like how many different types of sprites are there? how many sprites do you need to generate?

  • Like I said, set the position first, then pin. I also fixed some other stuff.

    What I did:

      1. Add an image point above the player's head 2. When reach 1000:
        set smiley visible position it to that image point (added) pin to player(moved; see below)
      3. Added a 'trigger once' otherwise it will be doing the above every tick (probably could've changed the System:TotalDistance>=1000 to =1000 4. Disabled the Sprite:Is visible->Sprite Pin to Player event as it's not necessary due to step 2

    Note: using Wait x seconds can be confusing to use.. other events don't stop while the time passes...

    https://www.dropbox.com/s/tz3wwfzqj64qonj/Autorunner%20Example_tomhaiger.capx

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies