neutrinox's Recent Forum Activity

  • Hi!

    I'm developing an RPG and the dialogue texts vary greatly in length. Has anyone a suggestion of a good way of automatically assigning a background color for dynamically created text objects? My problem seems to be that I need to wait something like 0.1 seconds after creating the text object before Construct will calculate it's size correctly (for sizing the background rectangle accordingly). This slight delay gives the game a glitchy feel. It would be great if we simply had a text-background property, but in the absence of that how would you create text backgrounds for dynamic text?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    I have been trying to think of a simple way of overcoming the webstorage/cookies limitation of the player having to use the same computer every time for the game. I would like to create a system in which the player can pick up the game on any computer.

    I was thinking of storing all the different game variables in a string, then somehow obscuring that string and giving it to the player when he quits. So all the player would need to do is save that string and next time he could use it to restore the game progress. Can you give me your thoughts on such a system? Has anyone tried anything similar?

    To give you a better picture of what I'm thinking about, here is a small example:

    Data to be saved:

    1. Checkpoint number (as a hex-number) 1-16, this determines where the player is positioned, needs one character from the string

    2. Health amount (as a number) 1-9, max health in my game is 9, needs one character from the string

    3. HP amount (as a hex-number) 0-256, needs two characters from the string

    4. Completed tasks, this one is tricky, because there can be several different combinations (let's say I have 20 different tasks that can be completed in any order). Instead of storing 20 different booleans in the string, I'm thinking of creating a map/dictionary of all the possible combinations (I believe 190 in total) and the picking the combination the player has with a 2-digit hex (giving me numbers 0-256).

    All in all the above system would require a string of 1+1+2+2 = 6 characters and it might look something like this D5EACB. Because a clever player might understand that the numbers can be changed in order to cheat, I should come up with some way to scramble the code. I'm not sure what the best approach to that might be though.

  • Is there really no way to access the right-click menu without changing selection? IMHO a right click should not select anything, since we can already select with left click just fine.

  • This is the biggest workflow issue I have with the layout editor at the moment:

    I have several overlapping sprites, often on the same layer. I select one of them from the z-order bar (or sometimes through tab left-clicking). How can I now open up the right click context menu without messing up my selection?

  • I need this too!

  • Okay thank you, it's very helpful to know that at least esc and enter work. I guess I will just have to educate the player with a sign that tells them to hit esc when the texbox opens.

  • If this is not possible, I welcome that information as well!

  • Hi!

    Construct doesn't seem to be capable of regognizing specific key presses when the textbox-window is active. I'm trying to unfocus the textbox when the player wants to move forward by pressing the arrow keys, but it's not working -the textbox still has the focus. I also tried to use the browser object (because it has a blur command) but I was unsuccesfull with that approachh as well. To be clear, I would like the game to get the focus when the player presses one of the arrow keys (instead of the textbox), because when the textbox has the focus the player is stuck and can't move.

    There must be some way to defocus/blur the textbox without having to use the mouse! Any ideas are welcome!

  • I got the same message after upgrading from 190 to 195. Backup-file gives this message as well.

  • Hi! Sorry for the late reply! I ended up separating all my dialogue lines with pipes and made one event sheet just for this text. Then I simply created one global variable and pasted it all in. I'm later looping trough the sentences by using the pipe as the splitter and each line starts with a number so that I can easily call for the right position.

  • Hi!

    I'm trying to detect when a player stops overlapping another object.

    The problem with writing a condition that simply says "player is not overlapping object" is that it triggers also in the very beginning.

    Is there a way to write the condition so that it only triggers if the player was just before overlapping the object?

  • Your way worked nicely! I ended up storing the original array in a temp array though, because in this particular example I needed to alter the order of the array only for the top-list and then revert it back. Thanks for your help!

neutrinox's avatar

neutrinox

Member since 17 Jan, 2014

None one is following neutrinox yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies