Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mikee

Pages: 1
News / Re: The new Stencylpedia is ready!
« on: July 08, 2012, 10:56:22 am »
I really wish there was a search function...

Resolved Questions / Object pick up issue [RESOLVED]
« on: July 03, 2012, 11:17:52 am »
Hey guys.

So I have a scene where objects are created on the screen as powerups the player can pick up, which works perfect with no issues but one.  When the player is moving forward and turning at the same time the object doesn't react to the player at all.  The object is a sensor and the collisions are all 100% correct.  I've checked and double checked.

Here's my code for sprite changes, which I think is my issue, because when I remove that code I have no problems at all, but I'm unsure of how else to change graphics when the player changes directions.  And I also included the item pickup code in case there's a better way of doing that as well.

Thanks in advance for any help.

That is the entire code for the entire behavior, and I'll try that boolean idea and let you know.

Thank you.

EDIT:  Yeah.. the boolean thing just gives me a black screen again.  I even tried rearranging it into 3 events now.  One that spawns the initial spawn count, one that checks the count and sets maxed to true when the count reaches the "enemy max", and a third one that checks the maxed boolean and respawns enemies and sets their count as they're spawned.

I guess I don't get what order the events trigger in, or if "do always" commands are constantly looping or not.  Because it seems like if they're "do always" then they should loops every frame.

Any other info would be great.  Really unsure why this isn't working.

EDIT:  Yeah...  I think I got it fixed for the most part.  No more freezing.  However;  now for some reason I can only get the enemies to respawn at higher numbers.  Not that it's that big of a deal because there shouldn't ever be less than 5 or 6 on a map at a time, but still, it would be nice to figure out why it's not letting my max be anything less than about 5.

EDIT:  It keeps spawning now and won't stop.  I've given up for the night. Ha ha.  Any extra advice would be greatly appreciated.

Ask a Question / Randomly spawning enemies after they're destroyed?
« on: June 26, 2012, 09:56:10 pm »
Hey everyone,

I'm pretty new to Stencyl but I've used the RPG Maker engines for quite a while so I'm pretty used to the event system Stencyl uses.  However; I'm having some trouble trying to get this to work. 

Here's what I'm attempting:  My game revolves around defeating enemies.  Surprising, right?  But I'd like them to respawn on the map as long as the Enemy_Max attribute hasn't been reached... essentially, spawn x amount of enemies and respawn up to y amount every z seconds. 

I attached a picture of my code snippet.  It seems pretty logical to me, but when enemies are destroyed they aren't replaced, and if I place my enemy max higher than the enemy quantity I get a black screen and have to force close flash.

Any help would be appreciated.  If you need more info, let me know.

Pages: 1