codah's Forum Posts

  • Hi Codah,

    Yes, they are named Layout1, Layout2...

    Without a space..?

  • You should navigate to a layout by name, but we can't see those without the capx. What are they called? "Layout 1", "Layout 2"?

    Edit: Make sure you have the space between 'Layout' and the number.

    Suggestions. You don't need the check for CurrentPage in event 6 and 7, and adding System:Once while true to events 2-5 would advisable.

  • Might as well keep adding to this.

    Could we have '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.

  • See if this has anything you can use.

    [attachment=0:3cban07d][/attachment:3cban07d]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I also get this from CrossWalk builds.. white screen.

  • What do you mean 'each message has its own effect'?

    Edit. Which don't you know? Just to narrow it down..

    How to do something at certain time intervals

    How to choose something randomly

    How to display something in a 'textbox'

    How to store and retrieve a large number of text values

    How to display an effect on a text object

    All of the above

    How to put it all together

    Also, how does the topic title refer to your question? Edit: oh ok, the every x seconds thing..(?)

  • edit: ok this capx does an insertion sort based on your needs, hopefully

    I based the array on your capx rather than what you've indicated above, as the order is different in the capx.

    i.e. name, value rather than value, name. I'll let you plug it into your code.

    [attachment=0:3je792y0][/attachment:3je792y0]

    Apart from the issues with your actual algorithm implementation, there's a basic way you're trying to loop that won't work. You're trying to use them like for loops in normal languages.

    e.g.

    [quote:3je792y0]System: For i from 1 to A_Initiative.Width-1

    and then

    [quote:3je792y0]System: Set current to A_Initiative.at(i, 1)

    You need to use 'loopindex', not 'i'. 'i' is just a tag for the loop. e.g. you could refer to loopindex(i). Normally I use "X" or "Y" or similar, if I need to use it.

  • ahh. yeah.. Tap gesture... not available in 173.. just realised

  • Should this work from a later version to an earlier version? I've just tried doing this from v177 to 173. I copied all the globals first which was fine. I then added necessary plugins. I then copied my entire event sheet (small project) and when I pasted it into my empty sheet on 173, I got this error:

    [attachment=0:lvpu80m6][/attachment:lvpu80m6]

    I narrowed it down to the Touch: On tap gesture.. events. None of these will paste properly.

    Any clues? Has there been a change of internal clipboard format from 173 to 177? Thanks.

  • Thanks!

    delayed response BTW it's 'archive' not 'achive'.

  • I also prefer to have my global variables inside their own event sheet(s), you do not even have to include the event sheet where your variables are declared for it to work, so you have a list of variable and constant you can simply read and edit.

    yea Aphrodite I was going to suggest that to Ruskul as well. Would also be nice to be able to 'fold' the globals, or put them in a Group, then you could even keep them in your event sheet. Currently if you put them in a Group they become locals.

  • do you just use events to set the values of the array?

    For just a few, sure. Or load from JSON file.

  • Maybe post this as a tutorial so it's not lost in the forums!

    Still not clear on difference between rexrainbow 's sample and mine. But I'd read the tutorial

  • TwinTails

    "On Function" doesn't support variables. But I still use constants

    var FunctionNameF

    Create function and start typing out Funct... and it will list the variable, just delete the F and put in ""

    Its a work-around, but at least no typo's.

    That's true but at least you can do it at the point of calling.

  • "By the way you're terrible at this"

    Edit: got through it

    Very old school fun (difficulty wise), well done!