1
Other Discussion / Re: How many Playstation 3's could you afford by selling your cadaver?
« on: July 04, 2007, 04:05:49 am »
Congratulations, your dead body is worth $7450!
well i made it up on the spot so i did not test it or anything and i did not read his own code.it should beHe wanted to add a period at the end thus it isCode: [Select]message("your name is:" + string(global.name))
Code: [Select]message("your name is:" + global.name+".")
wait... WTF are you doing stringing a string?
message("your name is:" + string(global.name))
if (global.heart)<=(global.totalheart div 3){
if !sound_playing {
sound_play(global.lowheart_S)
}
}
background_replace(ind,fname,transparent,smooth,preload) Same as above but in this case the background with index ind is replaced. The function returns whether it is successful. When the background is currently visible in the room it wil be replaced also.
ok guys, this may be a shock to some of you, but considering I made around 99% of this set you should be able to accept it.
I'm claiming this entire style for myself and Im looking to sell it once I put it up on my site, you can still help if you'd like, but be warned you won't receive any credit, or pay.
Current Tileset:
Current Palette:
PM ME FOR THE OFFICIAL PALETTE
Current Sprite Sheet:
Mockup:
/* Creates twenty variables, 'prev_x[1]' and 'prev_y[1]' through
'prev_x[10]' and 'prev_y[10]'. The first is the current location
of the object and each of the others represents a previous "ghost"
of the object, with number 10 being the latest one (10 steps ago).
*/
for (ii = 1; ii < 10; ii +=1;) {
prev_x[ii] = 0;
prev_y[ii] = 0;
}
// Update the current object's positions.
prev_x[1] = x;
prev_y[1] = y;
// Update each of the "ghosts".
for (ii = 10; ii > 1; ii -= 1;) {
prev_x[ii] = prev_x[ii-1];
prev_y[ii] = prev_y[ii-1];
}
// Draw the sprite and its 9 "ghosts" at logical alpha values.
for (ii = 1; ii < 10; ii += 1;) {
draw_sprite_ext(sprite_index,-1,prev_x[ii],prev_y[ii],1,1,0,c_white,0.5*(10-ii)/10);
}