Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - cAlien_Interact

#1
Code: ags

function FE4_Interact()
{

if (Mouse.IsButtonDown(eMouseLeft))
     {
          DrawingSurface* ds = Room.GetDrawingSurfaceForBackground();
          ds.DrawingColor = Game.GetColorFromRGB(255,100,255);
          ds.DrawRectangle(mouse.x - 1, mouse.y - 1, mouse.x + 1, mouse.y + 1);
          ds.Release();
     }

}
//and next

function g5g_AnyClick()
{
  aBlop.Play();
  Display("Nice drawing...you dig great");
  player.ChangeRoom(1, 90, 160, eDirectionRight);
 
}


this is the code I have for drawing on my surface, it does not let me draw, only click-draw, pixel by pixel(click by click)
How do i change this so u can draw holding down leftmousebutton as you would in Mspaint, instead of clicking pixel by pixel?

If anyone knows, that could help out, thanks alot!!! :cheesy:
#2
This is the script (see below)that I have for a poster(object)in a room,
I want an image to pop up as I click on the poster,
how do I set it to show up and be able to click away from it once finished looking at it.


Code: ags

function POSTER_Interact()
{
  aPaper.Play();
}


Thanks! :=
SMF spam blocked by CleanTalk