tulamide's Recent Forum Activity

  • To keep a distance, you'd need at least an angle. If you have nothing, you have to play it safe. One way to do the safe way is this:

    + [creation trigger]

    ++ For each baddie

    +++ baddie.x < global('lowX')

    ---> set global 'lowX' to baddie.x

    +++ baddie.x > global('hiX')

    ---> set global 'hiX' to baddie.x

    +++ baddie.y < global('lowY')

    ---> set global 'lowY' to baddie.y

    +++ baddie.y > global('hiY')

    ---> set global 'hiY' to baddie.y

    ++ [empty]

    --> Create baddie at

    (lowX + (hiX - lowX) / 2) + cos([your angle of choice]) * (distance(lowX, lowY, hiX, hiY) / 2 + [your distance of choice])

    (lowY + (hiY - lowY) / 2) + sin([your angle of choice]) * (distance(lowX, lowY, hiX, hiY) / 2 + [your distance of choice])

    Here's a picture describing the code above:

    <img src="http://dl.dropbox.com/u/11182740/pictures/get_distance.png" border="0" />

    By calculating the lowest and highest values for X and Y of the sprites (the blck dots) you get two new coordinates (the crosses) that are the outer bounds enclosing all sprites. If you now half the distance between them you have the radius of a circle with a center point between the two coords (red line = radius, red dot = center point, orange line = distance between coords). With the center point, the radius, any angle and your desired minimum distance you can now set a new spawn point.

  • Thank you <img src="smileys/smiley1.gif" border="0" align="middle" />

    QuaziGNRLnose

    It replaces the palette line, not with transparency but with whatever is to be drawn there. The object works as a palette on input and as a canvas on output.

  • I guess all game devs that posted here are using win7? Because I tested it on my WinXP SP3 and when I tried to close the demo via red button I saw a message from 'Data Execution Prevention' (DEP) for the first time in about 10 years of using Windows. It gets active if a program code tries to execute from protected memory (non-executable parts of the memory). After closing the message the space blaster demo crashed. To stress that: There were no issues as long as the demo was executed, only when trying to close it the protection gets active.

    Ashley: Is it a bug in Awesomium, or in C2? Or is it simply incompatible with WinXP?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I hereby nominate this as the coolest wikipedia article title ever.So this makes newt the coolest dawg out there, right? <img src="smileys/smiley2.gif" border="0" align="middle" />

    Cause this article is about exactly what newt said, weighted chance random.

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

  • You're welcome <img src="smileys/smiley4.gif" border="0" align="middle" />

  • There is no better way, but there are two other ways, that should be preferred.

    The first one is simply seperating the image from the mask by using two objects. One shows the image, one serves as a mask.

    The second way is using the "launch explorer" option by right-clicking on selected frames in the animation tab. This will export all selected frames and their masks as seperate images, that you can change as you like and then re-import. Here's a video from David showing it:

    Subscribe to Construct videos now
  • You'll find this option in the file object, which makes sense ;)

    Add the file object to your project and use the action "Execute file". This action expects a valid path to any file.

    Example (uses the file object and the common dialog object):

    + System: Start of layout

    -> CommonDialog: Show open dialog

    + CommonDialog: File dialog: OK

    -> File: Execute file CommonDialog.FirstSelectedFile

  • Yes, there is. It is the property "Inheritance layer"

    Name the layer that shows your inventory and in another layout just create a layer and enter that name in the text field of the property.

    Layout 1

    Layer named "MyInventory"

    Layout 2

    Layer named "Whatever"

    Inheritance Layer Property of Layer "Whatever" set to "MyInventory"

    There are issues with positioning, so this works best if both layouts have the same dimension, or if the layer you want to inherit is set to not zoom or scroll (both 0%)

  • Just for the record:

    I once had a problem that was solved by simply deleting the scirra folder in appdata, just like you did. So much is true. But the issue was something completely different:

    My issue then

    (Took me a lot of time to find this again - just to prove that I don't talk rubbish^^)

  • Tell it to stop.

    (Assuming you're using the car behavior)

    + On bounce

    -> Stop

    ConstructWiki Car Behavior

  • Very good that you found a solution.

    And I think I remember now that I had something similar a year or two ago and found the same solution. I really don't know why I recall this just now and not as soon when reading your problem. Sorry :(

  • ----> Function: Set return value to Function.Param(1) + Function.Param(2)*5 + Function.Param(3)*5*6 + Function.Param(4)*5*6*3

    Shouldn't this line be

    ----> Function: Set return value to Array(Function.Param(1) + Function.Param(2)*5 + Function.Param(3)*5*6 + Function.Param(4)*5*6*3)

    ?

    (I omitted a solution like this because of the complexity. It really isn't very intuitive. But that's totally personal subjective view :D )

tulamide's avatar

tulamide

Member since 11 Sep, 2009

Twitter
tulamide has 3 followers

Trophy Case

  • 15-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

17/44
How to earn trophies