Jump to content


sp202

Member Since 25 Sep 2011
Offline Last Active Private

Topics I've Started

Howtocheckif Clockwise Or Anti-Clockwise Is Closer

21 March 2013 - 02:48 AM

Sorry about the joined words in the title, I was running out of space.

So my question is...how would I be able to check whether rotating angle A in order to match angle B is faster clockwise or anti-clockwise.

To make things clearer: I have angle A which is the current image_angle and B which is the target image_angle. I need a piece of code that will check whether angle B is closer to A when going clockwise or anti-clockwise.

Any help is appreciated.

Thanks in advance! :thumbsup:
SP202

Blending particle trail together?

11 February 2013 - 07:40 AM

I don't know if this title explains what I want, but what I'm looking for is a way to blend particles in a "blur trail" together so that it looks like one big particle except that it retains it's opacity.

As an example, think of a particle trail of squares, all the same size and fully opaque, it would look like one big rectangle. That's what I'm trying to achieve but I want to be able to retain opacity and keep it consistent in the whole shape instead of transparent sprite on transparent sprite creating lighter pixels in the overlap.

I'm sorry if I explained that badly, I found it quite hard to explain, but hopefully you'll understand what I'm talking about.

Thanks in Advance!   :thumbsup:
SP202

Problem with hiding cursor in Studio

05 February 2013 - 07:53 AM

I'm trying to hide the cursor (which is an object that follows the mouse) when the mouse is outside the window. This code works in GM8 but not in Studio:

In cursor's Step event:

if mouse_x<0 or mouse_x>640 or mouse_y<0 or mouse_y>480
{
visible=false
}
else
{
visible=true
}

So how would I be able to go about doing this in Studio? Any help is appreciated.

Thanks,
SP202

GMC Jam 9: Teh Gaem

29 January 2013 - 02:17 PM

GMC Jam 9: Teh Gaem - A text based adventure



Does it follow the theme?
Of course not! Science is for nerds!
Does it follow the handicap?
Handicaps are for the weak!
So...what does it follow?
The spirit of the Jam of course!
Um...ok...



GMC Jam: Teh Gaem features:

-Stunning, new fangled 1 bit graphics!
-A cutting edge, text based choice system!
-Thousands of alternate endings, 5 to be exact!
-Funny humour! Amazing, right?
-And a story that makes as much sense as Gangnam Style!

Here's a taste of the mouth-watering graphics that are present in game:

Posted Image


Download this masterpiece of story-telling here.

Setting the title of the window in HTML 5

13 December 2012 - 03:30 AM

I've been wondering whether there's a way to change the title of the game window in HTML 5.
I found this thread but it seems a bit outdated: http://gmc.yoyogames...howtopic=522834

Despite Mike saying that he had added the function again, when I try it in Studio it comes up as obsolete. I'm aware that you can change the title by opening up the index file in notepad but is there another function that does the same thing, but on the fly?

Thanks in Advance!   :thumbsup:/>
SP202