A Flash Developer Resource Site

Search:

Type: Posts; User: davivid

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    623

    cheers justkevin, "Bresenham's line algorithm"...

    cheers justkevin,

    "Bresenham's line algorithm" is exactly the type of thing I needed to be pointed towards. A quick google revealed many implementations of this in as, so should be a problem...
  2. Replies
    2
    Views
    623

    particle interpolation?

    Hi guys,

    I'm trying to make a nice trail effect for a drawing/particle thing. I've got it working pretty nicely except that when you draw/move the mouse too quickly gaps appear between the...
  3. Replies
    17
    Views
    2,698

    ...i dont think he did write it, im pretty sure...

    ...i dont think he did write it, im pretty sure its this tutorial:
    http://active.tutsplus.com/tutorials/3d/throwing-dice-with-the-jiglib-physics-engine-and-away3d/

    anayway that sounds like a good...
  4. Replies
    17
    Views
    2,698

    i too wondered this, but never got round to...

    i too wondered this, but never got round to working it out... I first thought you would loop through the 12 faces to determine which one was highest by using the vertices data:
    ...
  5. Replies
    3
    Views
    729

    good point, the reason being that it would be to...

    good point, the reason being that it would be to narrow to be useful. I'm attempting to find the bounds of a useful space, so x + y must meet a minimum size otherwise it will exit, ready for a new...
  6. Replies
    3
    Views
    729

    flood fill algorithms

    Are there any flood fill guru's out there? I need a flood fill type algorithm, that maintains a rectangle aspect... I could solve this using many nested loops checking each pixel - but I need the...
  7. Replies
    5
    Views
    625

    well I seem to be getting there now. I decided to...

    well I seem to be getting there now. I decided to use a simple array, using the index number as the pixel location and just storing a digit, set as 0. As the roads are drawn they set the...
  8. Replies
    5
    Views
    625

    Yes that makes sense. Adding data to the arrays...

    Yes that makes sense. Adding data to the arrays as each object is created sounds like the correct way of doing things, however say I draw a vertical road - which will essentially be a rectangle say...
  9. nice one, I didn't know about modulo % operator -...

    nice one, I didn't know about modulo % operator - sounds pretty useful
  10. I worked out a solution that seems to work: x...

    I worked out a solution that seems to work:

    x = value - ( RoundDown(value/sale) *scale)

    y = RoundDown(value/scale)

    where scale in this example is 4. Is there a better formula I could use?
  11. Replies
    5
    Views
    625

    Thanks - storing the data in amultidim array with...

    Thanks - storing the data in amultidim array with its tile type sounds like a good idea.

    I've got my original idea working and then redrawing the roads again from the new data to check it works,...
  12. [RESOLVED] finding xy from the given number of a tile?

    I've set up a simple grid of lets say of 4 x 4, and number each tile accordingly:

    0 1 2 3
    0 '00''01''02''03'
    1 '04''05''06''07'
    2 '08''09''10''11'
    3 '12''13''14''15'

    I need to...
  13. Replies
    5
    Views
    625

    [RESOLVED] occupied pixels?

    I'm building a kind of dynamic level generator, at the moment I have it draw a grid of alternating coloured squares/plots (for visual debug), currently set at 1 pixel which I then scale up so they...
  14. Thread: peeling effect

    by davivid
    Replies
    1
    Views
    429

    peeling effect

    I cant seem to find any good tutorials/useful threads for creating an interactive peeling effect like this:

    http://www.ultrashock.com/#/asset/39562/peelable-sticker-[as3].html

    does anybody...
  15. Replies
    4
    Views
    598

    ok just realised it was a simple case of actually...

    ok just realised it was a simple case of actually gettting the min/max bounds correct...I've updated the code above.

    So its working pretty much how I need now, except for the fact it sometimes...
  16. Replies
    4
    Views
    598

    anyone?

    anyone?
  17. Replies
    4
    Views
    598

    thanks, that was exactly what I needed to hear....

    thanks, that was exactly what I needed to hear. I've got a basic demo going now with 3 date blocks, I've decided I don't want the auto scroll any more.

    It appears to work well, although my logic...
  18. Replies
    4
    Views
    598

    infinite date scroller

    I have hit a problem that I'm struggling to conceptualise, and find resources for.

    I want to create an infinite menu to display dates as a kind of calendar/timeline.

    So I figure I will have say...
  19. this helped me, in case your still looking: ...

    this helped me, in case your still looking:

    http://blog.soulwire.co.uk/flash/actionscript-3/as3-g94-circular-menu/
  20. Replies
    1
    Views
    366

    auto image grid of different ratio images

    How would I go about creating a gallery that displays images in a grid format that are both portrait and landscape without any cropping or spacing. I cant figure how to go about scripting the...
  21. Replies
    1
    Views
    414

    colorTransform update

    I cant seem to update the color of some simple graphics, which has me pretty stumped now.


    import flash.geom.ColorTransform;
    import flash.display.*;
    import flash.events.*;

    public class...
  22. Replies
    2
    Views
    5,136

    Any luck finding something similar?

    Any luck finding something similar?
  23. after a bit of sleep, realised why not just pass...

    after a bit of sleep, realised why not just pass the text content via php much easier and no problems this time - why did I take so long to think of that?!


    // return text from random file:...
  24. mmmm, cant seem to get passed this security...

    mmmm, cant seem to get passed this security error. uploading is not an option since this is to be a local standalone file.

    Will come back to it later and keep trying otherwise maybe I could ...
  25. Brilliant. thank you. Its now finding the...

    Brilliant. thank you.

    Its now finding the file.... however its one problem after another with this script it seems!

    when the path is passed into
    loadit.load(new URLRequest(filename));

    I get...
Results 1 to 25 of 35
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center