MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
How can I make a Cape power-up from SMW?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
How can I make a Cape power-up from SMW?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
How can I make a Cape power-up from SMW?
Mark All Posts Read Today's Posts

Pages (2): 1 2 Next »
How can I make a Cape power-up from SMW?
goh
Koopa
Members
#1
05-16-2020, 04:37 PM
I want to make a cape powerup from Super Mario World for my fanmade Hello Mario engine game. I already made a fire raccoon power-up and a flying power-up but I don't even know how to do the cape powerup. Can someone help me please?

I'm using Game Maker Studio 1.4 btw.
[-] The following 1 user Likes goh's post:1 user Likes goh's post
  ↳ BloodserGames
United States Metallica Lover
Goomba
Members
#2
05-17-2020, 01:56 PM
https://www.youtube.com/results?search_q...ario+World both can and will help you out. My name is Jason.
N. Usa (North United States of America) & (and) My name is Jason & I was born in N. Usa & I live in N. Usa & I am from N. Usa

  ↳
goh
Koopa
Members
#3
05-17-2020, 03:34 PM
It doesn't focus on the making of the Cape power-up though.

  ↳
SuperSledgeBro
Hammer Bro
Members
Iso Collab Contributor MFGG 19th Anniversary
#4
05-17-2020, 10:21 PM (This post was last modified: 05-17-2020, 10:22 PM by SuperSledgeBro.)
This is going to be very, very complicated. You should know exactly how the cape powerup works in SMW. I think you should get the cape animation working first. Then, the "slow fall" ability, which is similar to the raccoon leaf's. Put this code in the end of Mario's main actions script: (which is Event User 2 in Hello Engine if I'm not mistaken)

if keyboard_check( [jump button here] )
and vspeed >= 0.5
{
vspeed = 0.5
}
[+]Spoiler
[Image: V4bzhla.gif]
[-] The following 1 user Likes SuperSledgeBro's post:1 user Likes SuperSledgeBro's post
  ↳ goh
China Hyper
Ambitious but too burnt out
Members
assholw adminy Big Help Submitter Super Reviewer Wiki Contributor Iso Collab Contributor Sprite Comp Winner (3) Sprite Comp Runner-Up (4) Sprite Comp Top 5 (2) Minigame Comp Winner (4) Minigame Comp Runner-Up (2) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 Drawing Comp Winner (3) Drawing Comp Runner-Up Drawing Comp Top 5 (5) Special Comp Winner Egg Hunter (3) Skull Badge (2) E3 Bingo Game of the Month Winner (5) NCFC Contributor (4) Secret Santa (5) Holiday Tree NPGA Distinguished Service MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2018 Winner MFGG Awards 2019 Winner MFGG Awards 2020 Winner
#5
05-17-2020, 10:34 PM
You can borrow some of the codes from my old SMW Game Maker 8 engine. However it's up to you to port all of the codes or make some edit yourself since my engine worked slightly different compared to Hello Mario Engine.
https://mfgg.net/index.php?act=resdb&par...4&id=27791

I can only provide some guide these days. I have a life, I am not as granted with time as of 10 years ago.
[Image: Hyper86-Camry.png]

Main Site | YouTube | Bluesky | My OC


  ↳
GeneSu730
Wannabe Hacker
Members
Egg Hunter
#6
05-17-2020, 10:50 PM
I can give you my cape power-up code but I am not so sure if you can integrate it into your code. I use Visual C++. If you use C++ as your language, I can send you a copy of my source code but if you are coding it in BASIC, you might have a problem. You will have to translate it.

  ↳
Ireland Evan.F
Horse Whisperer
Members
Drawing Comp Winner MFGG 19th Anniversary
#7
05-18-2020, 03:15 AM (This post was last modified: 05-18-2020, 03:15 AM by Evan.F.)
(05-17-2020, 10:50 PM)GeneSu730 Wrote: I can give you my cape power-up code but I am not so sure if you can integrate it into your code. I use Visual C++. If you use C++ as your language, I can send you a copy of my source code but if you are coding it in BASIC, you might have a problem. You will have to translate it.

He's using Hello Mario engine (gamemaker) so no,
Stabyourself.net account: https://forum.stabyourself.net/memberlis...ile&u=4218

MFFG main account: https://mfgg.net/index.php?act=user&param=01&uid=15484

Important
It's back

[+]Spoiler
[Image: file.php?id=584]

 

  ↳
goh
Koopa
Members
#8
05-18-2020, 08:09 AM
(05-17-2020, 10:21 PM)SuperSledgeBro Wrote: This is going to be very, very complicated. You should know exactly how the cape powerup works in SMW. I think you should get the cape animation working first. Then, the "slow fall" ability, which is similar to the raccoon leaf's. Put this code in the end of Mario's main actions script: (which is Event User 2 in Hello Engine if I'm not mistaken)

if keyboard_check( [jump button here] )
and vspeed >= 0.5
{
vspeed = 0.5
}

Okay, then what?

  ↳
SuperSledgeBro
Hammer Bro
Members
#9
05-18-2020, 11:02 AM (This post was last modified: 05-18-2020, 11:04 AM by SuperSledgeBro.)
Then, you'd have to make the flight ability, which is the most complicated part. The easier way is to make an object, call it "obj_mario_capefly", and have Mario turn into this object if he jumps when his P-Meter is full. You should open an emulator and load a SMW Rom and play with the cape feather to see exactly how it works. As far as I remember, when Mario is flying, if you press the arrow button opposite to Mario's direction, he flies higher, if you press in the direction he is going at, he falls faster and causes an earthquake when he hits the floor.

I can't give you a script for this now since I don't remember the variables Hello Engine has and I still use an old version of Game Maker. But, there is a modified engine called "Hello Engine 6 Fan-Made" which has the cape power-up, if you can find it you can copy and paste it into your game!
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#10
05-18-2020, 01:02 PM
(05-18-2020, 11:02 AM)SuperSledgeBro Wrote: Then, you'd have to make the flight ability, which is the most complicated part. The easier way is to make an object, call it "obj_mario_capefly", and have Mario turn into this object if he jumps when his P-Meter is full. You should open an emulator and load a SMW Rom and play with the cape feather to see exactly how it works. As far as I remember, when Mario is flying, if you press the arrow button opposite to Mario's direction, he flies higher, if you press in the direction he is going at, he falls faster and causes an earthquake when he hits the floor.

I can't give you a script for this now since I don't remember the variables Hello Engine has and I still use an old version of Game Maker. But, there is a modified engine called "Hello Engine 6 Fan-Made" which has the cape power-up, if you can find it you can copy and paste it into your game!

I tried creating the obj_cape animation. But suddenly happens to become this:
Code:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_capeanimation:

global variable name 'state' index (100229) not set before reading it.
at gml_Object_obj_capeanimation_DrawEvent_1 (line 1) - if global.state = cs_cape
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_capeanimation_DrawEvent_1 (line 1)

  ↳
SuperSledgeBro
Hammer Bro
Members
#11
05-18-2020, 02:22 PM
Did you set a value for variable "state" in the object's Create Event?
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#12
05-18-2020, 03:00 PM
Um, no.

  ↳
SuperSledgeBro
Hammer Bro
Members
#13
05-18-2020, 03:37 PM
Then do it and see what happens.
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#14
05-18-2020, 05:05 PM
(05-18-2020, 03:37 PM)SuperSledgeBro Wrote: Then do it and see what happens.

Will you explain this cause I tried the create event and it didn't work:
Code:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_capeanimation:

Unable to find any instance for object index '417' name 'obj_flyingmario'
at gml_Object_obj_capeanimation_DrawEvent_1 (line 2) - and (obj_flyingmario.sprite_index != spr_mario_cape_fly or not instance_exists(obj_flyingmario))
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_capeanimation_DrawEvent_1 (line 2)

  ↳
SuperSledgeBro
Hammer Bro
Members
#15
05-18-2020, 09:07 PM
Try changing:

"and (obj_flyingmario.sprite_index != spr_mario_cape_fly or not instance_exists(obj_flyingmario))"

into:

"and ((obj_flyingmario.sprite_index != spr_mario_cape_fly and instance_exists(obj_flyingmario)) or not instance_exists(obj_flyingmario))"
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#16
05-18-2020, 09:20 PM (This post was last modified: 05-18-2020, 09:25 PM by goh.)
(05-18-2020, 09:07 PM)SuperSledgeBro Wrote: Try changing:

"and (obj_flyingmario.sprite_index != spr_mario_cape_fly or not instance_exists(obj_flyingmario))"

into:

"and ((obj_flyingmario.sprite_index != spr_mario_cape_fly and instance_exists(obj_flyingmario)) or not instance_exists(obj_flyingmario))"

Nope, didn't work!

Code:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_capeanimation:

Unable to find any instance for object index '417' name 'obj_flyingmario'
at gml_Object_obj_capeanimation_DrawEvent_1 (line 2) - and ((obj_flyingmario.sprite_index != spr_mario_cape_fly and instance_exists(obj_flyingmario)) or not instance_exists(obj_flyingmario))
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_capeanimation_DrawEvent_1 (line 2)
I use Game Maker Studio 1.4!

  ↳
SuperSledgeBro
Hammer Bro
Members
#17
05-18-2020, 10:11 PM
Do you even have an object named "obj_flyingmario" in the objects list?
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#18
05-18-2020, 10:31 PM
(05-18-2020, 10:11 PM)SuperSledgeBro Wrote: Do you even have an object named "obj_flyingmario" in the objects list?

Yes!

  ↳
SuperSledgeBro
Hammer Bro
Members
#19
05-19-2020, 12:25 AM
Uh. I can't figure why you're getting this error. I don't use Game Maker Studio, so I think I can't help you any longer... Sad
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
goh
Koopa
Members
#20
05-19-2020, 01:59 PM (This post was last modified: 05-19-2020, 02:00 PM by goh.)
Well, I started over and suddenly happens to be that when I got the cape feather and error shows up:
Code:
############################################################################################ FATAL ERROR in action number 1 of Draw Event for object obj_capeanimation: Unable to find any instance for object index '416' name 'obj_flyingmario' at gml_Object_obj_capeanimation_DrawEvent_1 (line 2) - and instance_exists(obj_flyingmario.sprite_index = spr_mario_big_runjump or not instance_exists(obj_flyingmario)) ############################################################################################ -------------------------------------------------------------------------------------------- stack frame is gml_Object_obj_capeanimation_DrawEvent_1 (line 2)
Can anyone fix this, please?

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode