Casaubon's Forum Posts

  • Hi - probably this is simple - I just don´t get it right... Let me please explain the setting:

    There is ~ 200 Sprite Objects (grey4) and a function is called when the game level is reached. I want this function to iterate through all grey4 sprites and move another sprite (cursor) on top from one to the next during every single count iteration and play a short sound, then add 1 to high score if the sprites instance variable "Damage" is 0. Simple.

    What I achieved in my code is that all the objects are counted and added to the score all in one go and the sound plays just once. Not exactly what I wanted, I want the function to move the cursor from sprite to sprite and play the sound during every loopindex iteration. I don´t want it to happen in a tick so to speak. Maybe the signal condition outside the function cannot be accessed from within the loop?

    Here´s the code:

  • very helpful Magistross, solves the same problem for me! thank you both

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Any store items page I want to access won´t load for me. is it just me?

    this error message is generated regardless, if I try with FF or Chrome:

    https://docs.google.com/file/d/0B6NfLUc ... hXbG8/edit

  • awesome news, hope it�s not a hoax

  • Very interesting thread, working on a chess like multiplayer game in C2 and might be one of your customers. I hope this project of yours is still alive.

  • hello fellow TBS fans, I am doing what Whiteclaws suggested a few weeks ago and I am building my own game since then. I was part of a modding group that made a client for weewar.com in 2011 and was responsible for the pixelart graphics btw, so I think my interests are very similar to Nasturtium�s taste in strategy games. Since there was comments about the current lack of quality in TBS titles I suggest to check out Panzercorps by Slitherine, it is the best actual title on the market. Also keep an eye out for Xenonauts, a true crowdfunded remake of the old and unmatched XCOM games soon to be released.

    regarding whiteclaw�s suggestion of making your own game rather than contributing to someone else�s project, here is my personal experiences so far:

    At this point I must say there is always some hassle as one needs to figure out how things are done with the graphical interface in C2, and even if you are a bit familiar with scripting languages (like actionscript in my case) you get stuck on a regular basis. In my case its mostly the order or scope of events, why is there no data passed from somewhere else, why is the order of events working in this case and not in the other, why is the array here not populated yet and somewhere else it is and stuff like that. I spend hours of reading tutorials, forums entries, the manual, still sometimes you cant get further and are dependent on pro help in the forums as the last way out. That is mainly because code for TBS games is more complex than lets say for a jump&run game. The C2 community is very helpfull though, I�d suggest if you encounter problems to isolate the thing not working in a separate capx file, people are usually more willing to help if the code sheet is short and cleansed from things that work and have nothing to do with the problem.

    My biggest hindrance usually is that I want too many features in my game and become inpatient when I can�t get past one essential point for days and start making graphics instead of dealing with the joyless bug hunting part. I often lost interest in going on. Surprisingly if one gets back to work, one can figure out & solve the problem sometime in minutes or just try something new and solve it by accident.

    I wish the best luck with your efforts, we definitely need some working TBS made by C2!

  • I guees if I�m using pixelart I don�t want the screen to autoscale, is it probable that my game set to a window size of 768 x 792 will stay framed as is on a tablet? (I dont own any such device)

  • Schoening thank you very much for the hint with "for each (ordered)" !!

  • oh wow great stuff, there is lots of new things to lean from your version here, it so freaking CLEAN! great is also the idea with the identical & consistent animationframe numbers for circles & corners.

    what I want to achieve as final result is a map generator with

    smooth transitions for circles next to each other making them look connected.

    I had an older capx version of this where it "almost" worked but I need a more generic solution like yours:

    <img src="https://www.dropbox.com/s/e94qzq6416w0v3s/maptiles.jpg" border="0" />

    So my next endevour is to check what colors are the circles not only nearest but also above, below, next to each other etc. and then dependent on those conditions to assign colors to the particular corner. I�ll try :)

  • very crips. I�m impressed!

  • first of all thank you very much vee41 for your answer!

    yes, formerly I was doing the setanimationframe as you suggest right just after creating the corners directly in the FOReachXY but soon I realized that I need a function because the function as it is simplified here will be expanded to check for many many conditions from neighboring colors that I left out of this example. And I dont want to redo it like 15+ times.

    I read that a wait = 0 is used to have a fake event that triggers a next top level event? A function itself doesn?t seem to be a such an event, because it?s only triggered when called, right?

    Another thing makes me scratch my head, the distribution order UID indices for the corners seems to be vertically alligned in this example while the colors to the circles are being distributed horizontally following the array indices. These different index orders will be quite a complication when I will need to compare their values among each other. colorvalue of corner with UID and colorvalue of circle = array at x/y. damn!

    I?m very thankfull for any structuring hints :)

  • uhm I forgot the dropbox.com/s/u8c8dg7yincu53x/simpletest.capx <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Hello, I am searching forums & FAQ & tutorials desperately for many days to solve my little beginner problem. It is my very first question in this forum & I hope I am not expressing myself too complicated:

    I�m creating sprites (circles) in an array (FOR EACH XY), assigning colors to them, then creating another sprite (the green corners) and calling a function to check, if the circle next to it is either blue or purple and making it the same color. The last part does not work obviously, the corners stay green and don�t turn blue or purple. The only corner picked & changing color is the on at the very bottom with the very first UID <img src="smileys/smiley18.gif" border="0" align="middle" />

    I added a textbox to prove if the 2 function parameters are passed correctly, which seems to be working. Apparently I havent understood when parameters get lost in new subevents or not passed to functions that are outside the loop or something else...

    I�m planning to add more conditions to check the surrounding circles for color and place the corner�s animation frame accordingly after I figured out the basic problem here. Can you help me please?

    corners staying green:

    <img src="http://casaubon.lima-city.de/testrun.jpg" border="0" />

    <img src="http://casaubon.lima-city.de/eventsheet.jpg" border="0" />

  • Really good and pretty stylish going the minimalist way. Didn?t find out how to move below the surface. Jump down? How?

    edit: okay found out you need the Z key for going down on a platform, which is on my X on my not english keyboard layout   <img src="smileys/smiley9.gif" border="0" align="middle" />