6bf85f30-2578-4227-841b-41a0007077df's Forum Posts

  • There will always be an arrow. Every time you click, the old one will be destroyed and a new one created in the correct direction.

    Just missed your post while testing and rewriting a follow-up.... Sorry.

    Here is an update. I realized after reading your post that arrows would just continue to be created, great catch! I hadn't used debug view as often as I should and seeing how valuable it is, it's a must-do.

    No matter how I set this, I can't get this to work without create a gazillion objects. I want to prevent assigning less than 0 and more than 3 to the sprite.cows instance variable.

    If cows =0, right arrow shows, only increase button shows.

    If cows <=2, right arrow shows, increase/decrease buttons show.

    Cows =3, left arrow shows, only decrease button shows.

    I tried creating them with trigger once, setting the condition to detect if they were visible/existing/on-screen, and now on disable/enable. Nothing has worked. Suggestions?

  • Here is an update. I realized after reading your post that arrows would just continue to be created, great catch! I hadn't used debug view as often as I should and seeing how valuable it is, it's a must-do.

    No matter how I set this, I can't get this to work without create a gazillion objects. I want to prevent assigning less than 0 and more than 3 to the sprite.cows instance variable.

    If cows =0, right arrow shows, only increase button shows.

    If cows <=2, right arrow shows, increase/decrease buttons show.

    Cows =3, left arrow shows, only decrease button shows.

    I tried creating them with trigger once, setting the condition to detect if they were visible/existing/on-screen, and now on disable/enable. Nothing has worked. Suggestions?

  • Is this an acceptable answer? I got it working but wasn't sure if it was what would be recommended.

  • Ah, I see! How would I keep them visible? I thought the "pick instance...UID" condition would do the trick. Subsequent testing including sub-events hasn't fixed it either so it's a "me not knowing" issue. Thanks for your help.

  • Hey C3 world!

    Decided to do some testing to learn more about conditions. In this scenario, an easy "left-arrow" if cows = 3, otherwise a "right-arrow" should appear. However the arrows don't stay visible once I click on another sprite.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Greetings C3 world!

    I tested this on my own for a few days and I'm not making much progress. Essentially, I'd like to have this black arrow be on the sprite that you last left clicked. What's happening is if you click sprite A, then click sprite B, multiple arrows show up.

    Suggestions on how to prevent this so only 1 black arrow shows? Thank you in advance!!

  • The easiest method would be to create an image point below the Oil Rig sprite in the Sprite Editor. Then spawn the text on that image point.

    Thank you! This is what I was looking for.

  • Is spawning not the right approach? Hmm... How about, how do I "create" a child textbox under the parent sprite?

  • Hey C3 world!

    When the conditions are met, this text box is created (actually a sprint font). However, I'm not sure how to program the spawn location so that the text box is under the sprite that spawned it. I've tried sprite.BBoxBottom/Top/etc and create object > sprite.x/sprite.y.

    Yes, I've searched on C3 and must be overlooking the article/tutorial/answer.

    Any help would be appreciated (even if that's a link to a tutorial)!

  • New day, oddity from yesterday isn't there now.

    Thank you for your help!

  • Like this? I ask because it's working but only on the first 2, not the third, then it works again on the rest. Odd or is it just me?

  • I'm dumb. Not sure where that condition goes.

  • Hey C3 world. Hope you're doing well!

    Not sure what I messed up on in the coding but I'm hoping you can figure it out.

    Essentially, when oil pump is placed, the instance variable "WorkerAssigned" is less than 3, the red sprite shows up. When you set the "WorkersAssigned" to 3, the red sprite should disappear, which is does expect to all oil pumps.

    How can I target just the oil pump that meets the conditions and delete that red sprite versus all red sprites being deleted? I appreciate any/all help you can provide.