Callan S's Recent Forum Activity

  • I'm loading from local storage. The load screen goes fine and in the inspector I can see it has loaded the data into the globals.

    Now, I don't know if this is the problem, but the main event sheet is where the globals are defined. After loading, I go to the main page/event sheet and then it gets the value of the global there as the global is defined (say if I set 'Scenario' to 777, then it goes to 777 even though I loaded 40 from the file on the previous sheet).

    Thing is I've made a game already where I defined globals on the main event sheet and it'd load fine (has something changed)

    I can't move the globals without it ripping them all out of the program thus far (even if I have a duplicate copy of the globals in my load event sheet).

    Is it the globals and where they are defined that is the problem?

    Edit: Okay, my error...somehow. I had it looking for the scenario data on a local variable 9, but after that if it was on 9 I would make it go to the main page. Plan was it'd load the data, then go to the main page. Seems it wasn't loading the scenario data at all. I think I had an order issue - I had the 'goto main page' inside the local variable increment rather than just below it. Anyway, my mistake.

  • Okay, I've updated and the OR statement still doesn't work!

    It's the global that breaks it - if it checks two instance variables, it's fine. But check a global and an instance variable and it becomes an AND statement rather than an OR statement.

    I guess having checked here first, I'll post in bugs soon.

    Edit: Wow, posting a bug looks to be quite a hassle

  • I own a personal licence for construct - what's the update process? Just download it and install it again? I'm just not familiar when it comes to purchased products.

  • I don't use any file services and this forum wont let me post links still, iirc.

    To simplify bit Just take korbaach's example, remove the mouse and global test part and just use the OR part of it by itself,

    I've just done that and the OR statement will not fire. It's instead acting like a AND statement.

  • If variable1 = 0

    THEN (in sub event) : if global>0 OR variable2=0 THEN Change the text

    It doesn't work when it should work.

    I'm in ver 216 of construct and can't open your file - I'm on a bought copy of construct and am not sure of the process of updating (I don't want to screw up something when it's working fine for me...apart from this issue)

  • Try Construct 3

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

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

    Make a new project and some text box. Make two variables in it and make one global. Set the global to 1.

    Now make it check variable one is equal to zero.

    Then make a sub event in that, in which you check if the global is above zero and the second variable is below zero as an OR block. And yes, it is an OR block in my test run. If the or block is true, make it change the text to something else.

    Can anyone else reproduce this error where the text doesn't change/the OR block does not trigger?

  • I'm thinking I'd really like to make a game or three, albeit primitive ones, in under five hours. I just like that turn around in result as it's encouraging. It's just such games might largely be a story with one or two choices and those would be in regards to getting game money or such or helping someone in the story. Probably only three or four screens. Then popping that on scirra arcade or even there and on kongregate. And I wonder if that's a bit simple - so I thought as I'm going to do it anyway, I'd write down my intention to see if it really causes gnashing of teeth and protestations that eyes would bleed - sufficiently to make me think otherwise of doing it. Or if people just shrug, that's fine and I needn't have worried. I'll give a link in the game(s) to this post in that case to show my design philosophy. I just felt like I needed to sound it out here in this forum first.

  • I've never really thought about mobile development much and I don't know the screen sizes (guess what!? I don't even have a mobile phone! Such heretic!)

    So what are the popular screen resolution sizes to develop in?

  • Okay, I'll try that next time. Thanks, blackhornet

  • How do I get tokenat to aim itself at a carriage return? Something like tokenat(string,X,newline)?

    Besides, what would it do for me in changing the original data?

  • Okay, I have a work around by just trimming the first character of every line (that's where the carriage return ends up after tokenat takes it's sample). I have to have one carriage return at the start of the text document for this to not erase the first character of the first line. And I have to add the '<END>---' at the end manually, because putting it in manually adds a carriage return and I have no other way of doing that currently. Before I had the program add that.

    Still would like a way of removing all carriage returns, if it's out there.

  • Okay, tokenat isn't adding the carriage returns, they were just in my text file.

    When I made my text file just one long line, the project worked! But it's a pain (though not impossible) to work on an instructions file that's one massive long line.

    Is there any way to remove carriage returns from a text? I've looked before and construct doesn't seem to have anything equivalent to 'chr' that other programs do. So I don't know how to point at carriage returns to make construct remove them (not even sure of the removal command either)

Callan S's avatar

Callan S

Member since 2 Oct, 2015

None one is following Callan S yet!

Trophy Case

  • 9-Year Club
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

11/44
How to earn trophies