MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Error occured
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Error occured
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Error occured
Mark All Posts Read Today's Posts

Error occured
LGBTQ+ Pride Pedigree
Resident Furry Degenerate
Members
Big Help Submitter Super Submitter Super Reviewer Iso Collab Contributor (3) Sprite Comp Winner Sprite Comp Top 5 Minigame Comp Winner (2) Drawing Comp Runner-Up Drawing Comp Top 5 Skull Badge (2) Secret Santa (2) Holiday Tree Good Citizen MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2017 Winner
#3
12-17-2020, 01:30 PM (This post was last modified: 12-17-2020, 01:36 PM by Pedigree.)
(12-17-2020, 01:14 PM)goh Wrote: I was creating a solid bubble item (You know, from Mario Advance). But the error has occured!
Check here:
Code:
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_solidbubble:


Variable obj_solidbubble.item(100225, -2147483648) not set before reading it.
at gml_Object_obj_solidbubble_DrawEvent_1 (line 1) - if item = 3  ############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_solidbubble_DrawEvent_1 (line 1)
Can anyone help me on this please?
You are calling for .item variable before it has been set. Remove reference to the variable in the draw event and it should work fine. You cannot reference the object's variable when you are drawing it because the draw event happens before any other event on an object in Game Maker.

(12-17-2020, 01:29 PM)Mors Wrote: As for your question, the error says that you did not set a variable called "item". Add a line like "item = 0;" to the create event of your object.

Draw event happens before create event in Game Maker so that will not work as far as I know, it will still throw this error.
 

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Error occured - by goh - 12-17-2020, 01:14 PM
RE: Error occured - by Mors - 12-17-2020, 01:29 PM
RE: Error occured - by Pedigree - 12-17-2020, 01:30 PM
RE: Error occured - by goh - 12-17-2020, 02:52 PM
RE: Error occured - by Hyper - 12-17-2020, 01:47 PM
RE: Error occured - by CGWorks - 12-17-2020, 03:00 PM
RE: Error occured - by goh - 12-17-2020, 03:16 PM
RE: Error occured - by Pedigree - 12-17-2020, 03:56 PM
RE: Error occured - by goh - 12-17-2020, 04:28 PM
RE: Error occured - by Pedigree - 12-17-2020, 05:40 PM
RE: Error occured - by goh - 12-17-2020, 06:38 PM
RE: Error occured - by Mors - 12-18-2020, 01:41 PM
RE: Error occured - by Hyper - 12-18-2020, 02:22 PM
RE: Error occured - by Mors - 12-20-2020, 04:25 PM
RE: Error occured - by Pedigree - 12-17-2020, 07:50 PM
RE: Error occured - by goh - 12-17-2020, 07:53 PM
RE: Error occured - by Pedigree - 12-17-2020, 07:55 PM
RE: Error occured - by goh - 12-17-2020, 07:59 PM
RE: Error occured - by Pedigree - 12-17-2020, 08:32 PM
RE: Error occured - by goh - 12-17-2020, 09:07 PM
RE: Error occured - by Hyper - 12-18-2020, 01:54 AM
RE: Error occured - by goh - 12-27-2020, 10:23 AM

  • View a Printable Version
Forum Jump:

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

Linear Mode
Threaded Mode