|
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
|
Dev - In the submission form, you can now upload a banner image
collision_check_segments
This time, it's basic. In a chance where you need to check if segments collide, as in triangulating polygons with concave parts, you'll have to find if a segment intersects another one. By using simple algebra, I managed to create what I believe is a bug-free code. It is possible for me to find the X and Y values, but then there would be the problem of what would happen if there was no collision. Don't be suprised about how simple this is. It does what it was programmed to do. To clear the lines, press space. It's very basic, and anyone could have made it, but I haven't seen any example like this. So I took an initiative. No need for credit. EDIT: if the line is the same, it returns false. I did that for marbs, but you can easily change that. Target platforms:
Dev - Warning Dev - After editing rating, make rating display change Dev - When editing, update "edited" column Dev - Restore deleted comments Dev - Display deleted comments if mod (hidden, then with dropdown) Dev - After deletion or during edit, make rating dropdown appear again Dev - Stricter rating rules. Prevent user from rating again Dev - Pages Dev - Reporting
Simple, yes. Effective, halfway. Original, no.
Ok. My explanations: Simple: Yes, all you have to do is use the script. Effective: Halfway. It returns whether the lines collide, but does not tell where, unlike most other such examples. Original: No, Many people (myself included) have made such things.
@AlertGames: "basic algebra :P" I acknowledged that
@Gamer3d: I can easily make it where it return the x and y coordinate. Just I was debating on whether to return it via one script to a string, or to make two scripts that return x or y. And I haven't seen something like this in a while. I know it's not original, as marbs just needed something to implement into his game. It workes. @Cat: WTF. Strange. I hope you didn't alter it. Or wait... did I fix that? I really don't know how that could happen.
I made a GM7 extension that includes this and more...
If you want to try it, it's here: http://gmbase.cubedwater.com/image_links/cache/ex_124.png |







