Callan S's Recent Forum Activity

  • 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.

  • 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!

  • Interesting, linkman, I'll book that in for investigation soon.

    LS, I'd have to have the program spawn the buttons to do that? I'm still fairly new and prefer to see named buttons in the layout screen.

    Also how would the coding work - how would the coding know a particular button is to apply the CSS change to itself, rather than, say a copy of that button that was spawned before it? Is there any 'self' reference in construct?

  • Would love to hear about your monetisation strategy and how it fares after release (is there a fee to enter a game in the google story?), please

  • I can do one button at a time, but it seems like there should be some way of changing all buttons somehow?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you kept an array for the weapons and which ones are active, you could just make a search that goes up or down (depending on which way the scroll wheel was turned) and it keeps searching until it finds an active weapon. That way it'll just skip the gaps.

    So some 'current_weapon' value and a 'search' value which is set to on when the scroll wheel turns. Make 'current_weapon' go up by one, check in the array if that's an active weapon. If it is, set 'search' to zero to end the search. If not, add another point to 'current_weapon'. If it resets at 4 and if the pistol is always active, then if it finds no other weapons the search will end at the pistol.

  • For example, if I set 'profile' key in local storage to equal zero, then I go to the log in screen in the same if statement, it doesn't seem to change the key? It's all happening in an if statement and I made it change a test global to a certain number and that number comes up, so it's doing the if statement...which includes a local storage write, but it's ignoring that?

    Does changing layouts cancel storage writes?

    Edit: My mistake, I had a naming error on my key. Seems to be working now, thanks for the help.

  • I think I got caught on how construct builds from the last layout you looked at rather than the projects start layout. Thanks for the reply - I'm not sure I have all the bugs out, still occasional discrepancies, so I may have questions in future still!

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