Jump to content


Meetle

Member Since 24 Aug 2009
Offline Last Active Mar 28 2013 09:58 PM

Topics I've Started

Wrong output on specific colors?

28 August 2012 - 09:38 PM

I'm using draw_getpixel to pick different colors from a basic scheme.

My problem is that the output on some colors are "inverted".

Red = Blue
Blue = Red
Yellow = Cyan
Cyan = Yellow
Green = Green (ok)
Purple = Purple (ok)

Any clue on what the problem could be?

Having issues with the new Draw Gui Event

12 June 2012 - 10:37 PM

I was very excited to find out today that we finally got a Draw Gui Event for GM, making it easier to control ex. zooming without having to worry about counter scaling the UI. Unfortunatly im having a problem to get it to function as intended.

In my game the view follows the player.

The basic code in the Draw Event, that make one of the buttons follow the view when the player moves around:
x = self.view_xview[0] + 24;
y = self.view_yview[0] + 24;

If I change this into the Draw Event Gui it still follows the screen but now the button shake oddly?

So I tried to change the code to:
x = 24;
y = 24;
The button dissappeared. I fixed this by putting draw_sprite() in the code:
x = 24;
y = 24;
draw_sprite(sprite_index, image_index, x, y);

The button now follows the view as intended, but is drawn twice. One that follows the view at x+24, y+24 and one that is static in the room at x+24, y+24 ?

Any suggestions to a solution? Or am I using the Draw Gui Event wrong?

Thanks in advance.

Errors after todays update?

06 June 2012 - 06:53 PM

After installing todays update: GM:S Version 1.0.230, im getting lots of errors with my current project.

The messages I get from GM:S include 5piceIDE and invalid pointer operation. Worst is the 5piceIDE error which continue to open a new popup window every 1-2 second, forcing me to close GM:S.
Seems a bit random when it happens. For me the error can trigger when I work in a script, removing lines or closing the script window.

Nonetheless I reverted back to GM:S Version 1.0.217 which work just fine.

Anyone else having issues?

Zooming in or out / Scaling of UI objects

29 September 2011 - 12:56 AM

I'm trying to figure out how I can zoom in and out of the view without scaling my UI elements.

The code for zooming that I use can be found here: http://wiki.yoyogame...oming_in_or_out

I have tried to draw the UI objects in another view using view_xview/view_yview which include me enabling an extra view in the room editor. That somewhat solve the problem except the objects are drawn twice. Also here I had to disable the draw background color

Should I approach this different like scaling only the objects i want instead of the view?

Any suggestions for a descent solution?

Thanks in advantage.

Swipe function

27 September 2011 - 04:56 PM

I'm trying to figure out how to do a swipe function like on Ipads or Iphones.

Quote from "Designing succesfull games for Iphones and Android with game maker".

It is easy to implement swipes yourself using mouse press, down, and release events.

For example, you can store the mouse position in the global Mouse Pressed event and then in the global Mouse Down event you can calculate the distance and direction of the swipe.
At the Mouse Release event you can then continue the movement. You might also count the steps during the swipe to compute the speed of the swipe.


Easy? Hmm. I haven't figured this one out yet.

I have not given up on this but I could use a hint or an idea on how to do this?

Thanks in advantage.