gazoogle's Recent Forum Activity

  • Sounds like this part of the manual will help:

    System Condition - Trigger Once While True

    "Turn an ordinary event (which is tested every tick) in to a trigger. For example, if an event plays a sound when lives equals 0, normally this event runs every tick. This plays about 60 sounds a second and would sound pretty bad. Adding Trigger once while true after the other conditions makes the event run just once when it first becomes true. This makes the previous example only play a sound once the first time your lives reaches 0. It must be the last condition in an event."

    Alternately you could what you could do is have a 2nd event right after the event that creates the object (in the same condition that creates the object) that immediately resets the variable to a number that does not create any object

    Variable - 1 through 4 create something, then set it to 5...

  • They're not in the manual yet. You add them as a plug in on your layout. You can set them up in the event sheet as an event, and then add the actions you want them to perform. They can also be used as actions in the event sheet.

  • Thanks for those examples. This is now solved in a couple of ways!

  • So, I made a condition that changed the GameState Flag to 2 when the Number of sprites with opacity 50 was less than the number of "neighbor checkers". Destroyed the neighbor checker in the layout at the start of the layout, and when the click was negated.

  • Nevermind got it

    Condition: Sprite1 Opacity = 50 / Action: Set Variable to Sprite1.PickedCount

  • If there is I don't know how to write it.

    <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another detail - event 5 - I want it to be recursive (if that's the right word)

    It finds all the adjacent sprites that are the same color, makes them opacity 50, and then checks all the new opacity 50 sprites for sprites on the same animation frame, and then checks those for matching neighbors, until there are no more.

    It does that fine the way it is, but it just keeps creating the neighbor-checking sprite forever....

  • EDIT: Realized I did not describe that properly. I want to select all the blocks of the same color that are also next to the block clicked on.

    I have a grid of 99 sprites. I am attempting to select all the blocks of the same color. When you click on a block it changes that blocks opacity to 50%. Then I spawn a sprite that is cross shaped, if any of the neighboring sprites are on the same animation frame, it changes their opacity to 50% (there are probably other ways of doing this but...). I only want it to create one cross, but it keeps creating crosses forever, they are all on top of each other, but they are there. How do I make it only do it once? I fear someone is going to tell me to read "How events work", but I must not be understanding something there.

    <img src="http://i.imgur.com/6QIr0.jpg" border="0" />

  • This seems to work, not sure its the best answer.

    btw, I started with a sprite on the screen, that's why it only repeats 19 times.

  • Anyway, This runs Aug 11-19, so its not too jammy and time intensive. I was thinking it could be a great promotion for Construct 2 if the community wanted to informally make a game or two. I'm far from the most active or best user to try to organize this, but I bet some of the folks here could make something really great and represent the product. Anyway, just wondering if there is any interest, the theme is announced Aug 11, and I will definitely be at my daughters birthday party at that time. <img src="smileys/smiley17.gif" border="0" align="middle"> http://gamejolt.com/community/contests/

  • Just thinking about this, it seems like an old fashioned javascript image map would be some way to do this. I wonder if there is any sort of plugin possible that would make it possible to treat individual areas as if they were each a sprite. Just a thought...

  • Say I have a map of the World that I want to use for a risk type game. What would be an efficient way to make all the countries into independent pieces?

gazoogle's avatar

gazoogle

Member since 5 Nov, 2009

None one is following gazoogle yet!

Trophy Case

  • 15-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies