brent_hamel's Forum Posts

  • yes Difficulty is a variable, is there anyway to implement this, it would be an incredibly useful feature :)

  • I'm using the worksheet to try and add a ramping difficulty to my pattern game, and when I exchange the time-in-seconds for a global variable, it doesn't work... is there a reason for this?

    ie.

    Worksheet| Start Worksheet: "Difficulty,spawnenemy,0,0"

    this is what I need to have work :(

  • It's not that I want to, I just know NOTHING about using either of those file types :S, but thanks for the AJAX idea, I hadn't thought of that at all

  • Oh wow, duh! lol thanks Ashley!!

  • are you looking for something using behaviours? Or are you comfortable enough with the event system to do everything manually (movement, collision, etc...)

  • I'm afraid I have no idea about either of those formats, I was hoping to simply be able to reference a .txt (notepad) file, tell construct which lines to look for within the text file, and then return everything between those lines as a string.

    The application for this then being to store things like character dialogue, array data for level building, enemy lists/stats, and so on and so forth? I'd be all for writing a plugin to do it, except that I don't know javascript, or any programming languages at all really, except for some basic VB.

    Any ideas?

  • Is there anyway at all to be able to resize the layout at runtime? I can understand not being able to do so with the window size, but I'm not sure why it can't be done for the layout? I'm asking, because, as with another question I posted recently, I'm using arrays for my level data, and i'd like to have the freedom to be able to make an array at whatever size I want, and have the layout automatically resize to fit the dimensions it would need based on my tile resolution. Any ideas?

  • So here's what I'm trying to do...

    I'd like to be able to retrieve the text from an external .txt file. I'd like to be able to use this for things like Dialogue Trees and Array Data. I know that Arrays can save and load from JSON strings, but I'd like to be able to edit the JSON string manually and then be able to save it/load it.

    Or, does someone know an efficient way to be able to edit Array data outside of having to use events within Construct 2? I don't want to have to build an entire level editor just to have a way to edit my array information, any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys,

    Just wondering if there's a way to actually have Construct 2 detect the way a device is oriented (all 4 possibilities). I'd rather not have to lock off the orientation, but I will if I have to. The game's control scheme is entirely based on the gyros, and their values don't change based on orientation. Therefore I need to make different forumlas for the different orientations. Any ideas?

  • I basically want to trick the system into thinking a key has been pressed when it hasn't. It's meant for an easy to event, multiple control system engine. I've found a work-around, it's long winded, but seems to work. I'd rather just be able to manually tell the system that a key has been pressed without needing that key to be pressed physically

  • I've tried using the keycode and extra expressions plugins but haven't been able to get anything to work, is there really no way to do this?

  • Try having something like...

    If Player.Animation = "Punch" Then

    If Player.Collision with Enemy.Collision = "True" Then

        Enemy.Hp = Enemy.Hp - Player.Attack

        Enemy.Animation = "Damage"

    End If

    End If

    sorry for my crappy suedo-code, I'm a terrible programmer but I can't think of how else to simply explain it lol

  • it's really just the ability to tell the system a keyboard key has been pressed without the user actually needing to press the key

  • Is there anyway to have an object being touched simulate a keyboard key being pressed/down. I'm not using behaviours for this at all. There must be someway to have something like...

    If object.InTouch = True Then

    KeyboardKey.Down = True

    End If

    Is there anyway to accomplish this without behaviours through purely the event sheet?

  • It's the graphical representation that I'm looking to emulate for than anything, and I'm imagining a system of doing it that is very convoluted, so are there any ideas for a simple way of achieving this look?