codah's Recent Forum Activity

  • I don't have r194 just yet so I didn't open the file.

    Try this modification. We have to keep checking for overlapping the marker after 'resetting' the picking by 'pick all'.

    [attachment=0:1sh7cnko][/attachment:1sh7cnko]

    edit: I've also made some other 'enhancements'. You can now remove the marker, and re-create it, thus creating more of sprite 'z'

  • You can't possibly expect Ashley to respond to this, it is just your misunderstanding about C2.

    Anyway, after looking at your video I think I might understand what you're trying to do. Have a look at the capx and see if it's 'close' to what you're after. It's not the only solution and probably not the best.

    [attachment=0:2u7hxlkr][/attachment:2u7hxlkr]

    My understanding is this:

    You have 1 sprite type 'x', with (at least) 2 animations

    You want to create a 3rd sprite 'z', based on these conditions:

    1. User selects sprite instance 'x1' and a marker is placed on it to indicate selection.

    2. User then selects sprite instance 'x2' and a marker is also placed on it to indicate selection.

    IF sprite 'x1' is playing animation 'y1' AND sprite 'x2' is playing animation 'y2' THEN create sprite 'Z'

    You can substitute 'y1' as'sticks', 'y2' as 'flints' and 'z' as fireplace

  • Well done on the downloads. I just gave you another one

    Some points if I may..

    I suggest you make it use up the whole screen. On my 16:9 device I get black bars down the sides. There are some good tutorials on this. (The banner ad is off centre too).

    The initial screen had some confusing words placed over the help text.

    Sometimes duplicate words can be in the list, and it won't let me choose the second one.

    At least once it took me to the next level even though there were some words left.

    It's a bit hard to see the difference in colour between the 'found' words and the not found words.

    The music is kind of loud and sudden.

    Your app store listing shows 3 identical screen shots. I suggest you use a different one for each screen size in your app listing.

    Always look to improve

    edit: a question though, do you generate your puzzles or are they fixed?

  • You should have a scan of the manual, there is 'persistent' behaviour, plus different options for saving game state, some quite new.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's nothing terribly wrong with that. Depends on how you expect your project to grow, i.e. will you eventually have 100 stars, etc. Perhaps give all stars an ID on creation (or use their IID) and use this ID as an index into an array that has the number of planets for each star. Might be overkill at the moment but as you add more info to your stars you can just add another 'x' value for each star. Also you can load/save as JSON file, etc. and even create the file offline in some editor. I'm not sure if I'd go down the database path just yet (C2 doesn't really have it's own db as such) but it depends on the aims of your project. Welcome to C2.

  • heh. Played it through. Had a bit of trouble with the elevator but eventually got it right

  • I think you're misunderstanding how conditions work

    https://www.scirra.com/manual/75/how-events-work

    Do this. And the section on 'picking'. It's essential.

    edit: if you can write some pseudocode, it might help

    e.g. IF this OR this THEN do this ELSE do something

  • I've made a little test with a new project:

    [attachment=0:2b1vor2b][/attachment:2b1vor2b]

    the "inc" variable should stop at 9 but it continues to be incremented by 1.

    What's wrong here ?

    I answered this for you in another thread.

  • If I use a loop:

    for x from 1 to 4

    and I have a subevent below it

    how does the flow go?

    Is it executing the parent's event 4 times, then it goes to the subevent?

    or every x it will execute the parent and the subevent?

    ---------------------------------------------------

    If I use WHILE condition and other condition,

    is it the same if I use WHILE with a subevent?

    Having subevents under a loop doesn't alter the way the subevents work, they are just repeatedly executed as per the loop conditions.

  • Yep, the same question by me, this is where i'm stuck right now.

    How the flow of sub-event goes inside a loop ?

    [attachment=0:2ou11yew][/attachment:2ou11yew]

    This example isn't working, index just keeps increasing by 1 endlessly

    Your entire loop is running maybe 60 times a second. You need a condition to make it only run once. Like a "System: Once while true" above it, or put it under "on start of layout", etc.

  • Just, Sprite.IID? If by 'check' you mean 'retrieve'.

  • I did this sample once for some else asking a similar question. Hope it helps.

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies