Obi554's Recent Forum Activity

  • There are many ways to do it - with arrays, dictionary, CSV/XML files etc.

    Here is an example where list data is stored in string variables:

    https://www.dropbox.com/s/0mp4ow4v1uipy ... .capx?dl=0

    Hi,

    Thanks for your reply. I'm gonna try my best to study your events coding. It looks really technical but I'll do my best. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

    I'm wondering what's the csv option like? My actual project will need to contain lists with thousands of items. I've never been good at creating small projects lol.

    Is this possible with Construct? I have a little bit of the data arranged in an excel spreadsheet.

    Thanks.

  • Try Construct 3

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

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

    So here's a layout of what i'm trying to do to make it a bit easier to understand:

    LIst 1: List 2: List 3:

    Box 1

    Box 2

    Box 3

    Box 1 contents: apples, oranges, pears

    Apple types: ripe, unripe

    So basically I have 3 lists. When a player chooses 'box 1' option from the drop-down selection, I would like List Box 2 to show the contents of that box, in list form: so apples;oranges;pears. And if 'apples' is then selected from list 2, I would like list 3 to show the apple types: ripe;unripe. Then the player can choose which he/she would like.

    Is it possible to make an entire list content depend on another list's selection?

    Many thanks for your help

  • Hi guys sorry for the late reply!

    Just wanna say it worked fantastically, and thank you so much dop2000 for your file - it was really helpful to be able to see someone else's code for the first time and learn directly from it. Taught me several things which are invaluable.

    Thanks again!

    Actually today I got the message that I can no longer create new events because my game is too large, and I have to purchase the full version lol.

  • Here is the file for version 244:

    https://www.dropbox.com/s/no1fe3ln9rp2g ... .capx?dl=0

    You can change the browser used for preview in project properties. If it doesn't work in chrome, try another browser.

    Sorry I don't use Chrome, I meant Mozilla. <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused" /> <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Here is the file for version 244:

    https://www.dropbox.com/s/no1fe3ln9rp2g ... .capx?dl=0

    You can change the browser used for preview in project properties. If it doesn't work in chrome, try another browser.

    Thank you so much!

    Will test it out and get back to you.

  • Hey Obi554!

    I didn't understand exactly what you'e trying either.

    When you change the slider, it will adjust its value to the value corresponding to the current position of the slider on the bar in relation to max and min values. So, if you have a slider with min 20, max 100 and step 10, you'll have a slider with 9 possible positions and you can change from each to any other of them. Sliders are not used to increase something step-by-step.

    You can force the slider to only go up or down one step at a time, but I wouldn't recommend, since it feels very weird and counter-intuitive. Another option would be to use the slider just as a feedback object, instead of an input object, and control its values with buttons. But, again, I'm not sure what you're trying to acomplish here.

    The capx below has both situations I explained above. The first slider let's you change it, but limits the change to one step up or down. The second one doesn't let you interact directly with it, but, instead, is controled by the buttons.

    https://www.dropbox.com/s/2ej7ti9kb9phh ... .capx?dl=0

    Hope this helps. Cheers!

    Hi,

    Thanks for your detailed message <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    What I want to be able to do is:

    When I change the slider value, it will directly alter the value of another separate dependant variable. So if my min and max are 0 - 1000 on the slider, I would like to be able to move it in the smallest possible increments so I can get a really cool changing of values on the dependant variable.

    So far (i'm a complete beginner), the only coding I understand and am able to achieve is the following:

    If slider = number > make other variable value = number

    I'd prefer something like:

    If slider goes up by x > make other variable value go up/down by x

  • Not sure I understand your question.

    I made a little demo, hope it helps.

    https://www.dropbox.com/s/6qyxgl8y1hcgl ... .capx?dl=0

    I'm unable to open your file in my version of construct: 244.

    I downloaded and installed the beta release: 247 but now it doesn't allow me to load the run layout using chrome, as I get an error message.

    Are u able to save the project so it's compatible with 244? I think i'm gonna downgrade.

  • Hi everyone,

    Is it possible to set up a condition where slider value is changed by +1 or -1 instead of just equal to or more/less than a certain number. There is an option which says 'on changed', but there is no value to enter with this one.

    At the moment I've set up dummy conditions where slider value goes up by 200 up to a maximum value of 1000, and each step it changes the temperature of the engine.

    The only thing I can think of is making 1000 events for each number from 1 - 1000 to alter the temperature.

    Thanks for any help.

    Obi

  • So you currently have this:

    Planet1 On click -> SpaceShip -> Bullet -> set angle towards Planet1.X, Planet1.Y

    Change it to this:

    > Planet1 On click -> SpaceShip -> Bullet -> set speed X 
                        SpaceShip -> Bullet -> set angle towards Planet1.X, Planet1.Y
    
    [/code:384e6m8p]
    

    Hiya, thanks.

    I'm currently tweaking different parts of my events because there are lots of different actions that are linked in a chain with my ship movement (power, mineral content, temperature etc) so once I've worked out how the chain links i'll test it out and post results on this thread.

    Thanks again

  • Possibly your collision box has moved or is tiny and not representative of the click area of the sprite, check that in the image editor.

    Hi again, thanks so much for your help, it worked!

    I'm so excited.

  • Possibly your collision box has moved or is tiny and not representative of the click area of the sprite, check that in the image editor.

    Hi, thanks for your reply.

    Don't think I even have a collision box. Let me look into it.

  • Hi,

    I have a few events which go:

    Mouse - on left click - sprite > different actions occur

    But when I run the layout mode: the sprite clicking hardly works, and only if I press repeatedly and very fast on the web browser over the sprite location. Not sure what's wrong. I got around this by using buttons instead of sprites, but it really makes my game look ugly.

    Any help appreciate.

    Thanks.

Obi554's avatar

Obi554

Member since 1 Oct, 2017

None one is following Obi554 yet!

Trophy Case

  • 7-Year Club

Progress

7/44
How to earn trophies