I Wanna Community
News:
I Wanna Community
»
Fangames
»
Game Design
»
Programming Questions
»
I need help to make the handling of line and shadow fading according to the move
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: I need help to make the handling of line and shadow fading according to the move (Read 2142 times)
Junior Nintendista
Guest
I need help to make the handling of line and shadow fading according to the move
«
on:
September 06, 2015, 10:44:02 AM »
I was wondering how does the shadow of the image according to the movement.
For example : in the screenshot above, the line will disappear with the move, if you help me, I would be very grateful.
Logged
Anon70000
Cherry Eater
Posts: 50
OS:
Windows 7/Server 2008 R2
Browser:
Firefox 39.0
Playstyle: Keyboard
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #1 on:
September 06, 2015, 11:09:10 AM »
Script:
(click to show/hide)
///createShadow(alpha_speed,scale_speed);
//
// creates a shadow of current object, often used in alarm or step events
//
// alpha_speed the value image_alpha decreases per step
// scale_speed the value image_xscale and image_yscale decreases per step
//
//
{
var inst;
inst = instance_create(x,y,objShadow);
inst.sprite_index = sprite_index;
inst.image_xscale = image_xscale;
inst.image_yscale = image_yscale;
inst.image_index = image_index;
inst.image_speed = image_speed;
inst.image_angle = image_angle;
inst.image_blend = image_blend;
inst.depth = depth+1;
inst.alpha_speed=argument0;
inst.scale_speed=argument1;
}
objShadow (Visible, not solid)
Step Event:
(click to show/hide)
//this object is created by script 'createShadow'
image_alpha -= alpha_speed;
image_xscale -= scale_speed;
image_yscale = image_xscale;
if(image_alpha<0 || image_xscale<0){
instance_destroy();
}
Logged
https://docs.google.com/spreadsheets/d/1XHY1MuRErptYUDs25A9t7Gh7QYVIz-Uhqr63whvYxjE/
- idk
Junior Nintendista
Guest
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #2 on:
September 06, 2015, 11:17:08 AM »
I have to create the shadow from the line without creating a new object.
Logged
pieceofcheese87
Global Moderator
The Kid
Posts: 346
Personal Text
OS:
Windows 8.1/Server 2013
Browser:
Chrome 45.0.2454.85
Playstyle: Keyboard
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #3 on:
September 06, 2015, 11:49:48 AM »
why?
Logged
Signature
Junior Nintendista
Guest
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #4 on:
September 06, 2015, 11:59:07 AM »
Quote from: pieceofcheese87 on September 06, 2015, 11:49:48 AM
why?
Because I'm doing I Wanna Call Me It and I Wanna Be The UltraPlayers for I Wanna Kill The Creator (medley game), and is line makes shadow without object.
(click to show/hide)
«
Last Edit: September 06, 2015, 12:10:46 PM by Junior Nintendista
»
Logged
BaronBlade
Spike Dodger
Posts: 140
bees?
OS:
Windows 8.1/Server 2013
Browser:
Chrome 43.0.2357.134
Playstyle: Keyboard
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #5 on:
September 06, 2015, 12:40:13 PM »
Is there any reason you can't just delete the second object once the line is gone?
Logged
bean!
Junior Nintendista
Guest
Re: I need help to make the handling of line and shadow fading according to the move
«
Reply #6 on:
September 06, 2015, 12:58:02 PM »
Quote from: BaronBlade on September 06, 2015, 12:40:13 PM
Is there any reason you can't just delete the second object once the line is gone?
I could even, but the shadow is made from the line.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
I Wanna Community
»
Fangames
»
Game Design
»
Programming Questions
»
I need help to make the handling of line and shadow fading according to the move