Callan S's Forum Posts

  • I think you need a hint of the button on the left when looking at the level select. Otherwise why would people think to do one more swipe? You need to give a clue.

    Also you could just replace the level 1 position with 'main menu' instead.

  • TWS is really quite engaging! Though unless there aren't many levels, the first level might be a bit too hard to start off with (in terms of grinding advancement)

  • Sometimes friends feel a bit jealous and would rather dismiss an effort than say you were ahead of them somehow.

  • Seems to work fine, though being able to jump up a rope always peeves me a bit!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, RamPackWobble!

    Containers are in the free version and I added a container to a practice object, put a text object inside it and in a simplified form copied parts of your code and managed to get it to work - two objects using a text box, but with a random number sent to their text boxes, and they showed different numbers than each other as they should.

    I'd still really like to just be able to have one object directly manipulate the variables of an object. But this solves my initial problem!

  • I don't understand why some engines have to make this stuff hidden away - stencyl was like this too.

    In game maker you could just do 'worker=instance_create(x,y,object);'

    And worker would equal the objects ID.

    Then you could just do 'worker.x=400;' to change the value x or whatever value inside the object. Really easy.

    Why other game engines have to make it really hard to do the same thing, I do not know?

    RamPack - what happens if any instances are created that aren't recorded in that global (say instances which you don't want to manipulate)? It'd seem the system wouldn't work if any instances get created but aren't tracked?

  • Hi antares,

    But how do we distinguish each text box from one another? If an object spawns two text boxes, how do we make one contain X and one contain Y, when they are both 'text box'?

  • For example in this game 'simple idle game' in the arcade, which I cannot post a link to for lack of repuation, each object has three numbers neatly paced by each of the objects.

    Either the writer painstakingly placed a number of text boxes or he had some automatic method where the code made them. I had a search but couldn't find anything that didn't reference just changing the contents of a manually placed text box.

    So how did the programmer do that? Thanks!

  • Yeah, managed to get it to work (my first code that worked first time around!). It has a bit of a 'race ahead' issue, but I guess if I did not show the display until the update was done then that'd be hidden.

  • Ah, I see - you have to go to the layout and double click to put the browser object into the project. Then you can use it to produce the 'on suspend' conditional. I didn't even think there was a browser object to add (I kind of imagine HTML5 games as always being in browser so I thought the on suspend thing would be built in). Okay, thanks ROJO!

  • I don't think Ashley understands the idle game genre, that players of idle games are okay with the game running/continuing to use the battery.

    But that 'wallclocktime' has potential to manage the in between time (thanks for the link, ROJO), even if it complicates things for me as someone new to construct. I guess 'every X seconds' wont be enough for me now...

    Edit: So I've tried to figure out how to access the 'OnSuspended' value to get the time of suspension and I can't quite figure out how to do that? Can anyone point me in the right direction? Rojo?

  • Really? That puts a real dampner on my investigation of construct. It's not currently what I need (is there some practical requirement to make the program pause at such times?)

  • Might not be the most efficient method, but simply having a variable like 'ExtraLivesGiven' and it checks if score is >='ExtraLivesGiven'+1000. If so, add a life and increase 'ExtraLivesGiven' by 1000.

  • I'm interested in writing an idle game that keeps running even when you're in another tab browsing something else.

    How do I do that? Thanks

  • Can't get a break, it seems! Just spent 45 minutes trying to just get a button to change position 0 in an array to a different number!

    I thought 'Button: On clicked: Array: At 0 set to 1' would be enough. What am I missing?

    Edit: Okay, so I used a new event sheet because I didn't want to be scrolling up and down the first. Turns out the new event sheet wasn't attached to anything so the code on it did nothing. I found the 'include' function (right click on an empty space in an event sheet for the context menu, for any other new users who are wondering).