TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Calling custom blocks for certain types returns same number even if killed off.
Pages:
1
Calling custom blocks for certain types returns same number even if killed off.
badower
Posts: 29
October 12, 2022, 10:23:30 pm
Please see attached code.
This all works correctly, whereby I display the correct number of Aliens in the Group as well as number of Grabbers,
but these figures do not alter after I have started killing off Aliens.
So how to call the custom blocks only for Alive Aliens?
I tried calling on the condition they are Alive, and on condition they are on the screen, but doesn't work
Thanks
Justin
Posts: 4716
October 13, 2022, 11:18:27 pm
It's hard to tell what this does without seeing what the custom blocks do, so I'm not sure meaningful advice can be given.
It sounds like the problem might be that you're only running this code once (in a "do after" event) when you might have intended to keep running this code (with a "do every" or "updating" event).
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
badower
Posts: 29
October 14, 2022, 03:36:11 am
Justin, you hit the nail on the head - I was totally blind to that !
This can easily happen when you are working very close to something and intensely so,
that you can't see the forest for the trees.
I really love Stencyl not only because both its concept and its looks are beautiful,
it is also because it makes you think hard - and at my age (73) that's what I need to keep my retired mind from rusting away.
Thanks so very muchly.
Pages:
1