Search:
Type: Posts; User: davivid
Search:
Search took 0.02 seconds.
-
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...
-
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...
-
...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...
-
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:
...
-
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...
-
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...
-
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...
-
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...
-
nice one, I didn't know about modulo % operator - sounds pretty useful
-
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?
-
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,...
-
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...
-
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...
-
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...
-
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...
-
-
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...
-
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...
-
this helped me, in case your still looking:
http://blog.soulwire.co.uk/flash/actionscript-3/as3-g94-circular-menu/
-
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...
-
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...
-
Any luck finding something similar?
-
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:...
-
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 ...
-
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...
|
Click Here to Expand Forum to Full Width
|