Jump to content


_257502

Member Since 16 Mar 2012
Offline Last Active Nov 30 2012 03:43 AM

Topics I've Started

Dissolving rainbow platforms

23 October 2012 - 07:47 PM

I'm trying to make the rainbow platforms for Ringman's stage in Megaman 4 like in this video http://www.youtube.c...h?v=A5Z1SdJcDcg however i'm having trouble making them.
I was thinking use something like draw_sprite_stretched and make the sprite small or draw_sprite_part and make the sprite bigger but i've tried both and still can't figure it out.

With() triggering all instances with variable

03 September 2012 - 04:28 PM

I am trying to make the disappearing blocks from sheep man's stage in megaman 10 (as seen in this video http://www.youtube.c...h?v=K25vG4mQZTw ). But my code is triggering every block that has the on variable, even ones not touching. I can't figure out how to trigger just the objects defined in the code, i have tried instance_place and instance_position also but neither have worked.

if (place_meeting(x,y-1,skull_man) && on=0)
{on=1}

if (on=1)
{
if (place_meeting(x+1,y,dis_floor_blue))
{
with (place_meeting(x+1,y,dis_floor_blue))
{on=1}
}
if (place_meeting(x-1,y,dis_floor_blue))
{
with (place_meeting(x-1,y,dis_floor_blue))
{on=1}
}
if (place_meeting(x,y-1,dis_floor_blue))
{
with (place_meeting(x,y-1,dis_floor_blue))
{on=1}
}
if (place_meeting(x,y+1,dis_floor_blue))
{
with (place_meeting(x,y+1,dis_floor_blue))
{on=1}
}
if (image_speed=0)
{
sound_stop(vanish)
sound_play(vanish)
image_speed=0.5
}
image_speed+=0.0125}

if (image_speed>=1)
{instance_destroy();}                                        

See if you can find a problem with this... and don't correct me on format or syntax, this is just until I get the code to work.
I forgot to mention this is in the step event.

Never mind, solved it myself. Just replaced place_meeting with instance_position and for the coordinates used bbox values.

Megaman momentum based jumping

13 August 2012 - 12:12 AM

In the megaman series whenever you are moving horizontally in the air there is a constant speed even if you just jumped off ice with no forward momentum at all. I was wondering everyone else's opinion on a megaman game i am making I have just put ice physics into it and I am curious to what everyone thinks about a feature like this. Normally megaman's top speed increases a little while on ice and i was wondering if that should be reflected in the jumps and if he is moving very slow should his movement speed when he jumps be limited?

hspeed not working

11 August 2012 - 04:37 AM

I'm trying to switch my engine over from a jump pixel engine to use hspeed instead to make use of the friction variable for ice movements and such. However when i try to use hspeed my character doesn't move at left or right all, even when jumping. Anyone know what i'm doing wrong, i've done this before but for some reason it's not working now.

Bullet hitting multiple times

26 July 2012 - 05:12 PM

i'm trying to make my bullet go through enemies, however it is hitting 1-2 times for every shot and i cant figure out how to stop it. Here is the code in the collision event
if (canhit=1)
{
if (other.instance_id!=idnumber)
{
idnumber=other.instance_id;
canhit=0;
alarm[3]=2;
myhealth+=1;
sound_stop(enemyhit);
sound_play(enemyhit);
}
if (other.instance_id=idnumber)
{}
}
if (canhit=0)
{}   
I know it's sloppy, i just wanna get the situation down before i clean it up
and alarm 3 just sets canhit=1 and idnumber=0.