Callan S's Forum Posts

  • Changing the browser in Preferences will take effect the next time you create a new project. It will not change your current project's settings.

    Okay, didn't see that coming. Rather like a word document having a variable in it that controls where it prints, rather than the user just deciding whilst using word.

    Thanks, that solved it, NicotineLL.

    Though I just tested my issues with 'newline' and find it wasn't a new problem exclusive to chrome. But that's something for my other thread

  • I don't think newline ever worked with buttons.

    It definitely has. I've been working on this project for probably two to three months, with a button using newline in it from near day one!

    [quote:2b200joc]You can make the text into multiple lines by changing the size of the button though, so maybe that's what you had before.

    Right now, without newline working, the text simply goes to the edge of the button and disappears - there's no word wrap.

    What I really don't get is how it could work one night, then with no change on my part, multiple buttons using newline ceased to use it the next day. Also just figured the problem is not exclusive to chrome - internet explorer wont do it either.

    Was something depreciated in web browsers recently or something?

    It's really annoying to have to have a sprite and a text object compared to before.

  • Even better I find I can't put text boxes in front of buttons. So for no reason at all my buttons have f'd up and I have to reconstruct them in a way I don't actually know right now so I can have any sense of progress.

  • I have tried to go into constructs preferences and change the preview option to use to internet explorer (I'm trying to figure if a problem with buttons rejecting 'newline' is browser specific). I set it to internet explorer. It loads up in chrome. I try setting internet explorer as my default browser. The preview loads in chrome.

    Whutup?

  • I haven't updated construct at all.

    I'm looking at the post editor and I have no idea how to attach a capx?

    I can start a new project, add a button, add a system 'on start of layout' and set the text of the button to 'Line 1' & newline & 'Line 2' and the button will show "Line1Line2"

    Keep in mind this problem is with buttons - newline still works with text boxes.

  • I have some buttons that I change the text of and use newline as part of that.

    It was working fine last night, but this morning newline doesn't seem to be working? What happened? It kind of screws up all my buttons? I'm on chrome - did it update somehow without notifying me?

  • Put them into an array, then make themselves load from the array after reset?

  • Well, I tried throwing myself at it since you implied it's easy ... and half trying out a tutorial at the same time I did manage to make it load up the data from a txt file. It seemed to load all of it at once, so I guess I'll have to use tokenat to break it down into an array. As I recall the other tutorials I tried had all sorts of code in the data and it was OTT for me.

    Thanks, Rojo

  • Fair idea. Any way around using a USB port, so I don't use up my data limit?

  • Thousands of rooms.

    If you're talking about some way of attaching a txt file to it for the game to read, I'm not sure how to do that and would appreciate any tips given.

  • I want to have a list of room descriptions from a list say 20 variable in length be given in what looks like a random way but isn't. So room 1 would always give the same descriptions, no matter what computer you're on. So would room 2, 3, etc.

    I was going to go through the list in a binary fashion to use every combination, but it leaves some descriptions lingering for far too long.

    I though someone else might have a bright idea on the matter already?

  • Yeah, maybe find someone who is good at games to playtest it?

  • shot by turret. I probably should have just tried walking off the platform really fast

  • The way I'd do it is not to use push, just fixed positions for each weapon. So you might have

    0. pistol

    1. crossbow

    2. shotgun

    If they walk over a shotgun, then change the value AT position 2 in the array by increasing it.

    For scrolling through weapons, if I was scrolling up the list (going up the numbers), I'd maybe have a while statement that increments the current weapon value and if the new weapon ammo amount is >0 the while statement terminates.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check the manual and see if you can figure how to add an array (hint:double click on the layout) and then in a start of layout event use a for loop to assign random values to the array, then look at the array contents in debug run.

    If you can't figure that, come back and ask. Good luck!