Nhdeitmers's Recent Forum Activity

  • Hi,

    Now that I'm setting up the appearance of my UI I wonder if there's a way to set font colors in the Layout with immediate feedback?

    I can't believe the color only updates after I deselect the object. It's impossible to make color choices this way.

    I actually have to use another application like photoshop, come back to Construct and set the color.

    That's really disappointing.

  • Yeah, I can see why ^^

    Maybe there's better ways to do what I did there.

    As tedious as they are to set up - the nice thing about them is that I can use the string names from my menu items to call them.

    My menu is generated based on an instance variable holding all the items names. So if I want to add a menu item I just add ",apples" to that variable and on runtime the menu creates one more item.

    Of course I also have to add the new string to my function map and create the actual function for it, but that's it.

    Is there an easier or maybe more flexible approach?

  • Brilliant posts, guys. Thank you for this nice workaround! There should really be an integrated way of doing this...

  • Just playing around with it, It's a nice feature. Is there a way to scale the whole thing to get a sharper corner radius from the same sprite?

    I found z elevation to work for that. Unfortunately when I set it to something extreme like -2000 the object is hard to position in a way that makes sense. Can anyone think of another way to acomplish what I'm trying to do?

  • Thanks, dop2000! I understand how to do it now.

    From a beginner's perspective it's a bit confusing having to call the intermediate function just to be able to pass parameters.

    It would be nice if the call mapped function would simply allow for parameters to be specified.

  • I don't quite understand where to pass the parameter for my mapped function?

    I would have expected it in the call mapped function action, but I don't understand this concept of the index in there...

  • I figured out a fix, but I still don't get it.

    The object MenuItem is a member of the family SwipeMenus.

    When I refer to SwipeMenus.text I get a consistent result.

    But since all but the first instance were created in the same way.. why does the second menuItem behave differently from the third?

  • Makes sense, sorry.

    So here's how the menus are created and then how I try to get their names later on:

  • Thanks for the feedback!

    I had an idea which is using the string to look up an index in a 2D array.

    So the Menu item would show "apples" and in my array I have a list of the menu item strings running down the Y direction where I look for Array.IndexOf("apples")

    Now I ran into a different problem, though.

    When I try to refer to menuItem.text I get inconsistent results. (Which I posted in another thread)

    But it's probably hard to help without seeing the event sheet.

    Facts are: I have a text object "Talk" that I use to display values at runtime. Every time the menu items come to a halt I pick the middle menuitem by comparing X and set Talk.text = menuItem.text

    Now this works great for all instances of menuItem except for the original that created the others and the first of it's creations. (So they are the first two items in the menu)

    Talk remains empty when either of those two are picked.

    When instead of the "set" action I use the "append" action it works. When I append menuItem.text&"!" I get "apples!!" (while the other instances produce "apples!" as expected)

    This behaviour remains consistent going back and forth or in a circle in the menu..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry for the cryptic description.

    I have a weird issue with a number of text instances that get created by a loop.

    So in theory they should all be the same.

    Now the weird part: The one instance that existed before and served as the example to copy the properties from as well as the first instance created by the loop respond differently when I try to use their .text property.

    When I refer to it by setting another object's text with the "set text" action all instances show their text, but for the odd two I get a blank result..nothing.

    When I use "append text" instead, the result is like it should be. Their texts are appended.

    When I append their text&"L" I get their textLL (two times the added string), which is beyond my comprehension.

    I know this is probably not enough information, but if someone has hunch you would make my day ;)

  • Ahh yes, I remember getting confused by this when I first transitioned to C3. Nowadays I wouldn't even think twice about how to access the editor.

    Haha, that’s what I’m hoping to say at some point ;)

Nhdeitmers's avatar

Nhdeitmers

Member since 5 Oct, 2020

None one is following Nhdeitmers yet!

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies