MasterNedyah's Recent Forum Activity

  • Thank you for the suggestion:) My app is not a traditional game and has many different elements. A 4:3 model is significantly different than a 19.5:9 thus the need variations.

    Do you have any suggestions as how to detect the aspect ratio?

  • I have an app with a few different layouts to cater to aspect ratios.

    In the loader event sheet I need to detect the ratio. PlatformInfo.WindowInnerHeight might be the best option.

    Will this work? Or is there a better option?

    Also, what if ratio does not fit any as described?

    Also, the 16:9 and 19.5:9 are portrait and the 4X3 is landscape. Will this influence the equations?

  • Thank you!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Array For each X element

    --> System Array.CurValue = globalvariable1

    The global variable is always lowercase with no non-alphanumeric or spaces.

    The array contains capitalized words with non-alphanumeric.

    Example:

    Array.CurValue could be Hello.

    globalvariable could be hello

    It does not recognize a match because of the uppercase and period. I originally had lowercase(Array.CurValue) but then this does not resolve the "."

    Then I tried find(aTexttoArray.CurValue, "[^a-z]"). Also did not work. I tried variations with the Regex expressions but could not get the right code. Any help would be appreciated. Thanks!

  • I was able to get it to work!! Your help was an answer to a prayer. Thank you, thank you!!!!

  • I currently have a loop that uses the sprite and makes copies, each with a different frame.

    I want to somehow loop through the images and load them into the sprite.

    I am having a hard time getting the AJAX to work. I am afraid I created a jumbled mess. Please advise.

    Also, what would be an efficient way to name files so that I can call a group of images? Or is this possible?

    Thanks!

  • I followed the tutorial for 'Taking screenshots'. Here is the link.

    I am not sure what to do next. Please be specific and detailed in response. I am new to the Share object.

    Thanks!

  • I will give each a try. Thanks for the suggestions!

  • GlobalVariable called CurrentGroup:A

    Other Global Variables associated with CurrentGroup variable.

    A1:8

    A2:120

    A3:275

    B1:5

    B2:160

    B3:210

    C1:3

    C2:155

    C3:265

    And so on....

    I have a variable that identifies the current group, called CurrentGroup. This variable and the other variables change depending on the users. It could say B or C or D or so on.

    Each group has measuring variables. So (A or B or C)1 measure the same thing, 2 measures the same thing and so on. Because each group is different they return different numbers (as shown above).

    I started with

    Set GlobalVariable to CurrentGroup & 3. This returns A3 in a string.

    But I need it to return the number. In this case, it is 275 (which is A3 number).

    Is this possible?

  • Thanks for everyones help! It worked:)

  • I have an array(X) filled with numbers.

    Example

    1 5 7 8 15 2 20 15 7 15 55 15 25

    The array will add or take away cells which change the location of the number

    Example

    1 5 32 7 8 15 2 17 20 15 7 15 55 72 15 25

    Let's say I wanted to grab the location of the second 15. I know how to access the first and last. How would I do locate the second, or in some cases the third (but not last)?

  • I have multiple panels that open and close. When a user opens a panel they have previously used, I want the scroll button and the panel to be where it last was. The panel has objects that move with touch panel and scroll button with bar.

    I was using RexRainbow's simulate touch plug-in but it doesn't work with C3. I had it working with the plug-in.

    Here is what it was:

    Event: variable=PanelOpenTrue

    Action: SimulateKeyEvent Simulate touch:ButtonX start at (variablelastlocation, Scrollbar.Y) on layer Panel1.Layername

    Action: System wait 0.05 seconds

    Action: SimulateKeyEvent Simulate touch:Button.Active end

    Button has variable named Active.

    I am running into the problem of the button moving but the touch panel is not moving with the button. Once I click on the button the panel moves into the correction position. This is why I need a user simulated touch.

    How can I do this in C3?

    Note: sometimes the panels have new content requiring objects in panel to be destroyed on close panel and then objects created on open panel.

MasterNedyah's avatar

MasterNedyah

Early Adopter

Member since 10 Aug, 2017

None one is following MasterNedyah yet!

Trophy Case

  • 7-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies