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

How can I make a Cape power-up from SMW?
United States mrpin355
Actually feel like engaging here again
Members
Submitter Iso Collab Contributor MFGG 19th Anniversary
#22
05-23-2020, 10:52 PM
(05-19-2020, 01:59 PM)goh Wrote: 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?
That's not how you use instance_exists, you did not properly write your conditions.
The object was being called before checking if the object exists.

Replace from this
if (instance_exists(obj_flyingmario.sprite_index = spr_mario_big_runjump or not instance_exists(obj_flyingmario))
to this
if (instance_exists(obj_flyingmario)) and (obj_flyingmario.sprite_index == spr_mario_big_runjump)

It checks if the object exists before any other condition ensues.

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
How can I make a Cape power-up from SMW? - by goh - 05-16-2020, 04:37 PM
RE: How can I make a Cape power-up from SMW? - by Metallica Lover - 05-17-2020, 01:56 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-17-2020, 03:34 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-17-2020, 10:21 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 08:09 AM
RE: How can I make a Cape power-up from SMW? - by Hyper - 05-17-2020, 10:34 PM
RE: How can I make a Cape power-up from SMW? - by GeneSu730 - 05-17-2020, 10:50 PM
RE: How can I make a Cape power-up from SMW? - by Evan.F - 05-18-2020, 03:15 AM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-18-2020, 11:02 AM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 01:02 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-18-2020, 02:22 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 03:00 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-18-2020, 03:37 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 05:05 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-18-2020, 09:07 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 09:20 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-18-2020, 10:11 PM
RE: How can I make a Cape power-up from SMW? - by goh - 05-18-2020, 10:31 PM
RE: How can I make a Cape power-up from SMW? - by SuperSledgeBro - 05-19-2020, 12:25 AM
RE: How can I make a Cape power-up from SMW? - by goh - 05-19-2020, 01:59 PM
RE: How can I make a Cape power-up from SMW? - by mrpin355 - 05-23-2020, 10:52 PM
RE: How can I make a Cape power-up from SMW? - by Videogamejunkie443 - 05-19-2020, 03:29 PM

  • View a Printable Version
Forum Jump:

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

Linear Mode
Threaded Mode