Jump to content


Flygonair

Member Since 13 Mar 2011
Offline Last Active Apr 03 2013 11:12 PM

Topics I've Started

How do I use variables with percentages?

28 January 2013 - 03:30 PM

I want to set the variable hp relative to -100, but +%global.spellpower, so if global.spellpower would be set to 10, hp would be set relative to 110. Does anyone know how I could do this?

sorry if it's a bit confusing.

Any way to make this script smaller?

23 December 2012 - 08:56 PM

if global.sprdir = 0
{
        if (global.skin == 0) draw_sprite(skin_0,0,self.x,self.y);
}

if global.sprdir = 1
{
        if (global.skin == 0) draw_sprite(skin_0,1,self.x,self.y);
}

if global.sprdir = 2
{
        if (global.skin == 0) draw_sprite(skin_0,2,self.x,self.y);
}

if global.sprdir = 3
{
        if (global.skin == 0) draw_sprite(skin_0,3,self.x,self.y);
}

global.sprdir is the direction the character is facing, is there any way to make the subimg the same amount as global.sprdir automatically so I don't have to repeat everything 4 times?

Walk out of room1 at the left side....

13 December 2012 - 08:17 PM

I'm trying to make an RPG but obviously I can't have one huge room, how do I make it so when my character walks out of room1 at the left side he enters room2 at the right side and the correct y position?

Know at what position the mouse is clicking

13 December 2012 - 07:34 AM

hey, I'm trying to make text boxes for my RPG (for quests and such)

and I want to make the game know at what position the mouse is clicking so I don't have to make a seperate object for every button for every text object. For instance I have this:

Posted Image
(612x144, the button is 80x32)

So how do I make it know that I've clicked that part of the drawn sprite so I can code what happens when you click the button? Or should I make the text box be an object that moves with the camera instead of a drawn sprite?

Also, how do I do it with multiple buttons?
Posted Image

if not (room == raceselect or cutscene1)

22 November 2012 - 06:58 PM

How do I make something do the stuff in the code in every room except raceselect or cutscene1?

if not (room == raceselect or cutscene1)
does not work