RBuster's Recent Forum Activity

  • I am destroying instances of an object and creating new ones, so I have no way to disable "set angle" directly in the panel. As I didn't find an option to disable "set angle" in the code, I tried to set the angle of the created object to "0", but it didn't work, whenever the object returns, it is upside down.

    Thanks for advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for answering.

    Sorry for only including this part of the code, but it is long and only this part presents an error. I'm including a printscreen to make it easier to read.

    Regarding the error: this part of the code should display a total (totalCharacters) of digits (letters or numbers) one by one with a pause of 1.5 seconds between them and as it shows each digit, it then shows an asterisk in its place.

    Example with 3 digits:

    Step 1: 7

    Step 2: *

    Step 3: * 4

    Step 4: * *

    Step 5: * * 1

    Step 6: * * *

    The error that occurs is that the first digit (7 in the example) is repeated 2 times, generating 4 digits in the result, instead of 3

    Example of a 3-digit error:

    Step 1: 7

    Step 3: *

    Step 4: 7

    Step 5: *

    Step 6: * 4

    Step 7: * *

    Step 8: * * 1

    Step 9: * * *

    I replaced the timer for every second event to see if the error could be in the behavior, but it didn't solve it. The strangest thing is that this problem only appears in mobile device browsers. In the 3 desktop browsers (edge/chrome/firefox) this system works perfectly

  • Is there anyone who could help me solve this problem? I've been stuck on this for over 3 days now. I just need some ideas.

  • Maybe the problem could be the "Timer"? Has anyone experienced this type of problem before?

  • The code below is working normally in desktop browsers and presenting a duplication error in the first digit when opened in mobile device browsers. It also happens on edge in the latest version when opened on a laptop (the same version works normally on a PC).

    Could anyone take a look and see if they can find any possible problems in the code?

    [LettersS_Interval]

    ----+ System: Trigger once

    -----> System: Set totalCharacters to 0

    -----> System: Set countDigits to 0

    -----> System: Set count to 1

    -----> System: Set amount to 10

    -----> System: Set totalCharacters to amountOfDigits

    -----> Array: Set size to (10, 1, 1)

    -----> Array: Set value at 0 to "A"

    -----> Array: Set value at 1 to "B"

    -----> Array: Set value at 2 to "C"

    -----> Array: Set value at 3 to "D"

    -----> Array: Set value at 4 to "E"

    -----> Array: Set value at 5 to "F"

    -----> Array: Set value at 6 to "G"

    -----> Array: Set value at 7 to "H"

    -----> Array: Set value at 8 to "I"

    -----> Array: Set value at 9 to "J"

    -----> System: Create object timer on layer "PanelTXT" at (34, -37), create hierarchy: False, template: ""

    -----> AdvancedRandom: Create permutation with amount values starting at 0

    -----> timer: Start Timer "changeDigit" for 1.5 (Regular)

    ----+ timer: On Timer "changeDigit"

    --------+ System: totalCharacters > 0

    ------------+ System: Pick panelText where panelText.id = countDigits+1

    -------------> panelText: Set text to Array.At(AdvancedRandom.Permutation(countDigits-1))

    -------------> textTemp: Append Array.At(AdvancedRandom.Permutation(countDigits-1))

    ----------------+ System: Trigger once

    -----------------> System: Wait 0.75 seconds

    -----------------> panelText: Set text to "*"

    -----------------> System: Wait 0.75 seconds

    -----------------> System: Add 1 to countDigits

    -----------------> System: Subtract 1 from totalCharacters

    --------+ System: Else

    ---------> System: Set countDigits to 0

    ---------> System: Wait 0.75 seconds

    ---------> System: Set keyActive to True

    ---------> timer: Stop Timer "changeDigit"

    ---------> timer: Destroy

    ---------> System: Set group "LettersS_Interval" Deactivated

    ------------+ System: Is timerController

    -------------> System: Set group "Timebar" Activated

    ----+ System: Repeat amount times

    --------+ System: Pick keyText where keyText.id = count

    ---------> keyText: Set text to Keyboard.StringFromKeyCode(64+count)

    ---------> System: Add 1 to count

  • Thank you for your help

  • if I want to rotate the "box" object to any angle, what would I need to do to rotate the other objects inside the container so that they are at the same angle as the box, in this case, on the axis itself?

  • EDITED:

    Thank you! It's working now.

  • Actually I have symbolsP1, symbolsP2, ... symbolsP4, and each symbol may be displaying a different frame, according to what I want each one to show.

    I will also have several boxes (which is the container spawned) on the screen, that is, each one with a different ID and I need to control each of the frames of the labels that are inside these containers, which will show different frames.

    e.g.

    box.id=1 : label1 = frame 1 / label 2 = frame 3...

    box.id=2: label1 = frame 4 / label 2 = frame 1...

  • I created a container of a box and included 3 sprites with 3 frames each, which would be the labels that would appear on the box. I intend to create 3 boxes and each one will show different labels as I determine in the code. Each box will have an ID variable that will be assigned at the time of creation. I need to know how to control the frames of each box individually using this ID.

    I tried this code, but it didn't work:

    + System: Pick BoxP where BoxP.id = 1

    + SymbolsP1: Is overlapping BoxP

    -> SymbolsP1: Set animation frame to 2

  • Thank you!

  • Hi

    I need to create a system which shows a code made up of letters and after a few seconds they become asterisks and the user has to type the same code that changes from asterisk to key pressed. There is also the possibility for the user to go backwards, erasing each letter typed.

    I'd need to know how can I do to replace the letters by asterisks (one by one with one second apart) once shown, and how to replace the asterisks by letters as the user types and letters by asterisks as the user backtracks what was typed.

    Thanks in advance.

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies