SOLVED Dropping/Stacking Items

GarrowGlitch

  • Posts: 217
I'm losing my mind over this, I've tried dozens of variants of this code but it just keeps crashing.....
OK, so in pic 1, i hit drop item on one of my inventory items which triggers an event (making sure it always drops if theres no dropped items on screen) WORKS FINE.
Pic 2 is the event. It all works great until the part that i outlined. All I'm trying to detect is when you're not touching a dropped item, and there are actually some on screen, then just create one. If i don't add this, then it wont drop an item since there is already some on screen.
Pic 3 is the When Created event for the item being dropped.
Help would be GREATLY appreciated

« Last Edit: November 09, 2018, 10:39:33 am by GarrowGlitch »

dreph

  • Posts: 140
So, when it crashes, what is the error you receive?

JeffreyDriver

  • Posts: 1830
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

GarrowGlitch

  • Posts: 217
Hello, there's no game crash logs. Its a full on window crash. So when i hit the button to drop the item, it freezes the window which forced me to spam the x until i can close it

dreph

  • Posts: 140
For me, that happens when a high-cpu intensive event happens under "When Updating", but without logs I cannot be certain.  I wish I had more to add.

GarrowGlitch

  • Posts: 217
All is good folks, I changed the behavior. I always drop an item now... When the two dropped items collide, one gets killed and the other adds to the stacked item. Thank you