Jump to content


Member Since 16 Oct 2006
Offline Last Active Feb 28 2014 09:43 AM

Topics I've Started

Deleting All The Subimages Of A Sprite? *-solved-*

02 May 2010 - 09:38 PM

So, I'm trying to come up with a script that lets me flip a sprite in order to make the game executable smaller, so far, I've come up with this:

//argumen0 = Source Sprite
//argumen1 = Destination Sprite
var surface, i;

for(i = 0; i<sprite_get_number(argument0); i+=1)
	 surface = surface_create(sprite_get_width(argument0), sprite_get_height(argument0));
	 draw_sprite_ext(argument0, i,sprite_get_width(argument0),0,-1,1,0,c_white,1);

It works great, but the problem comes when trying to restart the game. If I don't delete the subimages in the sprite, then the code will just keep adding more subimages at the end of the sprite, so, I tried by assigning a blank sprite to the sprites that this script adds images to:

//spr_main sprites are existing sprites that were used as the argument0 for the previous script. 


But it doesn't work and if used in the Game End event, it throws out an unexpected error, so, I'm guessing I shouldn't be assigning empty sprites to anything, but I can't think of any other way to delete the subimages in a sprite.

If anyone knows of some function that lets me do this then please help me out. :D

A Good Rpg Protagonist?

26 November 2008 - 04:18 PM

I have always wanted to make an action RPG, yet, there's one problem that always stops me from even trying: I can't think of a decent protagonist for the life of me. Usually, most characters can get away with being a little boring or a little of a Mary Sue, unless they are the protagonists, the player usually expects the protagonist to be perfect in every sense without being actually perfect. A good example of what I'm talking about is Lan Hikari from the Megaman Battle Network series, he often crosses the line between a character with little flaws and a Mary sue, yet, little to no people seem to care or even notice, and it's rare to come across someone that dislikes the character.

So... what do you think makes a protagonist likable and memorable? Is there a specific something that makes you dislike a protagonist? What are your favorite protagonist traits?

For me, a good protagonist has to stand out, if the character is timid or too much on the average side I get bored of him and forget him, I don't really know exactly where I draw the line for the characters I don't like, but I know flamboyant protagonists, "chosen ones" and characters with extreme luck (Either good or bad. "His home town was attacked, he is the reincarnation of the hero, has the sword of almightiness, only he can use certain types of sealed, mysterious magic that not even the best magician can cast, etc.".) are a no-no for me, I can't stand playing as them.

What about you?