zyblade's Forum Posts

  • Well, you kinda wrote the solution yourself by explaining it <img src="smileys/smiley17.gif" border="0" align="middle" />

    I haven't much experience on C2, but I think the method to C Classic is similar.

    If:

    objects speed is over XXX

    object 1 and object 2 are colliding

    object 1's private variable(fragile) = 1

    then

    object 1 = break.

    That would be my approach.

  • I've seen many ppl who posts links which seems broken.

    If I copy and paste them, they work.

    I think, it's because they don't read the 2nd promt when they use the link feature of the forum^^.

    If you click on "insert hpyerlink" you see:

    "Enter the on screen display text for the Hyperlink"

    Here goes random text, just infos about the actual hyperlink.

    Hit "ok" and then you see:

    "Enter the URL address to create Hyperlink to".

    Here goes the actual hyperlink. http://www....

    First entered "scirra", then the hyperlink.(right way to do it)

    scirra

    first entered hyperlink and then "scirra".(wrong way to do it)

    http://www.scirra.com

  • And now with colors!

    http://dl.dropbox.com/u/26932498/hp.cap

    When it goes below a specific number, it changes the color :P

  • I also had that problem. Picking the UID is a solution, but the UID can change by deleting/adding objects. My method was the following:

    I created a global variable(counter) and a private variable ID for the object. Now I add to the foreach action: add 1 to global('counter') and set object('ID') to global('counter').

    So it creates the object, and increases the counter everytime when the sprite is created and assigns the number to the ID.

    Short: every object has its own number in its private variable <img src="smileys/smiley2.gif" border="0" align="middle" />

    You only have to put on the conditions: object('ID') = 2. If you want to make something with the 2nd object.

    It was a little hard for me, to explain it in english. So if you don't understand anything, just reply.

  • To take the score to the next level(layout), make sure, the score is stored in a global variable and not in a private.

  • You shouldn't stop then, but rather improve it :)

    But I like the concept, it has much ".cap-ability" :D

    You could raise the replayability by adding new features. I think it will be a funny game :P

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you^^ I think I could need it also for another thing. Somehow, I knew, that if I say "math guy" r0j0 comes up with an example <img src="smileys/smiley4.gif" border="0" align="middle" />

    Could be usefull in combination with the sunrays example, which someone posted earlier.

  • I think it will work somehow with "overlapping at offset", and then puttin in a math formula, that dynamicly correct the difference that causes the scroll ratio. We just need one of the math guys <img src="smileys/smiley36.gif" border="0" align="middle" /> .

    I'm pretty sure they will answer.

  • Well, if you can't find a solution, you could post your .cap and I see what I can do. So I get a better overview of all.

  • <offtopic> What would we do without Tulamide? <img src="smileys/smiley36.gif" border="0" align="middle" /> </offtopic>

    You allways have interessting stuff off pat^^

  • Tulamide explained once in a very good way the basics of an array:

    > ...what does it buy me over just using a 3D array such that one index is the Object.UID, the second dimension is the variable name, and the third is the value?

    That's not the way, arrays work. An array is just a line of cells, and you access those cells by using coordinates. Whatever count of coordinates you have, it leads to exactly one cell.

    <img src="http://www.kevblog.co.uk/blog/97/as3_2D_3D_arrays.gif" border="0">

    <img src="http://www.codeproject.com/KB/cs/Arrays-dontumindit/array9.gif" border="0">

    So, to access the data you need to do something like this: var = array(2, 1, 4)

    To store a value it is: array(2, 1, 4) = "one cell"

    ....

    If you want to read the whole thing(but the rest isn't about the array itself):

    http://www.scirra.com/forum/container-type-functionality-for-families_topic46974.html

  • Does this help?

    http://www.scirra.com/forum/pick-closest-object_topic42831.html

    Just scroll down a bit and click on deadeyes link.

  • Since I collect all usefull .cap files the users post on the forum, I also have a minimap example. I didn't made it. Here's the link ->

    http://dl.dropbox.com/u/26932498/minimap.cap

    edit: unbelievable! found the old thread xD Credits goes to Mipey!

    http://69.24.73.172/scirra/forum/viewtopic.php?f=8&t=5867

  • Could you explain, why you need to proof the collition that way?

    Maybe we find another way to do it, if have further information about your actually goal?

  • Maybe check, if they are overlapping? Or you need a real collision?