netdzynr's Recent Forum Activity

  • Yes, that is what I want to do. From what I've tried, however, the editor refuses to accept setting color using anything other than integers within the rgb() function -- it believes anything besides numbers is a string.

    So I'll hopefully ask again, can this be done?

  • Is there a way to use a variable to represent a color?

    I want to set the color of a text object to a global variable value, ie "activeColor". Is there some way to simply set the rgb of the text object to the variable value, or is the only way to create a custom function for this?

  • Is this possible?

    If I launch a home-saved link of the Construct editor on my iPad, the project preview opens in a smaller, overlaid window.

    If I launch a remote preview, the project displays in Safari with the standard browser chrome.

    I've tried adding a "request fullscreen" action to the project (triggered by a button), but this doesn't appear to make any change.

    Is there any way I can preview a project so that it occupies the entire screen?

  • Looks like iOS just doesn't like the webm format? Changing to m4a appears to allow the project to completely load.

    Still wondering about my first question: is it possible to exit out of an event sheet?

  • OK, it seems the problem is sounds. Using the default import option, sounds are added to the project in webm format. When I delete the imported sounds from the project, it loads on iOS as expected. Is there an alternate sound format I can use? Or do sounds need to be formatted in some specific way before import?

  • Is there a way to insert an exit point in an event sheet to prevent code execution beyond a certain point?

    Also, any advice on how to troubleshoot a project that doesn’t completely load? The project runs fine in all desktop browsers but when loading on iOS (iPad), loading stalls at about 75%.

  • Thank you kriand, this is really helpful. I'm not new to programming, but I'm still quite new to Construct and need to figure out all the Construct ways of coding.

  • Thanks for the explanation. If I understand how a timer would work (it's quite possible I don't), I'd need to move the action outside of the function it currently sits in, so it falls in the topmost flow of the event sheet, and enable/disable triggering of the action using the allowLoop variable. Is that right?

    In any event, I wound up using (what I believe is) a recursive function with a timed delay since it's something I can explicitly call at any time. Seems to work OK.

  • I have the following repeat loop in an event sheet, and I want to be able to exit the loop arbitrarily. I figured by setting the value of the global allowLoop variable to 0 that the loop would stop running, but it doesn't. I even added a button in the layout to manually set the allowLoop variable to 0, and verified the zero value when clicking the button. What am I missing?

  • For anyone looking to do what I wrote below, one solution is to wrap each group of animations into its own function that can be called as needed. My approach to use some method to wait/halt all code execution is not appropriate. Thanks to Cipriux for getting me in the right direction.

    Cipriux

    OK, I have the wait at the front of the loop. Now I'm wondering how to detect when all the animations are done -- I need to delay any further code execution until the tween of the last sprite has completed. I know it's possible to compare tween values but I'm at a loss to find a way to halt the code. The idea is like this:

    > Do some animations

    > wait until all animations are complete

    > Do more animations

    > wait until all animations are complete

    > Do final animations

    > wait until all animations are complete

    > Execute remaining code

    Can you offer a suggestion? Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cipriux

    OK, I have the wait at the front of the loop. Now I'm wondering how to detect when all the animations are done -- I need to delay any further code execution until the tween of the last sprite has completed. I know it's possible to compare tween values but I'm at a loss to find a way to halt the code. The idea is like this:

    Do some animations

    wait until all animations are complete

    Do more animations

    wait until all animations are complete

    Do final animations

    wait until all animations are complete

    Execute remaining code

    Can you offer a suggestion? Thanks in advance.

  • Thanks for the thinking here, guys. It occurs to me that a function might be a better way to go in the end, but these are some decent options for me to try.

netdzynr's avatar

netdzynr

Member since 17 Dec, 2017

None one is following netdzynr yet!

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies