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 - ConocolatePizza

Pages: 1
1
Ask a Question / Jump sound not working in reverse gravity
« on: May 11, 2020, 02:39:39 am »
Hello,

I have one scene in my game where the gravity is up instead of the usual down. Everything in this scene works fine; the character can run and jump and whatever else. But, for some reason, the 'jump' sound won't play where the character jumps in this gravity. It works in every section where the gravity is normal, just not in this one. Does anyone know why this would be?

Thanks in advance!

2
Ask a Question / Re: Creating a Death Counter
« on: May 11, 2020, 02:36:36 am »
Thanks both of you, I figured it out! Actually really simple, feel silly for not understanding initially haha.

3
Ask a Question / Re: Creating a Death Counter
« on: May 10, 2020, 12:51:55 am »
Ok I've tried a few more things and figured out one that seems like it should work, but it's not working at the moment. I've attached a screenshot. Could you tell me why this isn't working? I think I'm not fully understanding the 'draw' command.

There is a different event that sets the death counter at the start to 0.

4
Ask a Question / Re: Creating a Death Counter
« on: May 09, 2020, 10:39:25 pm »
Are 'global attributes' and 'game attributes' the same thing? I don't have a global attributes option.

I'm not sure what you mean by 'death of player = [kill self] block in player actor'. How can I raise the number every time a player dies?

5
Ask a Question / Creating a Death Counter
« on: May 09, 2020, 10:03:29 pm »
Hi there,

I'm trying to make a death counter that's displayed on the screen and increases by 1 every time the player dies, but I can't figure it out.

I've looked around for ways to do it, and the only one I've found was a forum on here which says;
"Add a global attribute called death counter.
add a scene behaviour called count deaths.
add an event called 'when actor is created or destroyed' and change it to 'when player is destroyed'
then inside put 'death counter = death counter + 1'"

However, I can't find this scene behaviour, and I can't figure out a work around.

Any help is appreciated! Thanks in advance

6
Ask a Question / Putting Stencyl Games on Steam
« on: November 09, 2019, 02:49:04 pm »
Hi everyone,
Does anyone have any experience with putting the Stencyl games they've made on Steam and know what's necessary to do so? Ie what files you need to export etc.
Thanks

7
Ask a Question / Re: Stencyl Crashing when Testing
« on: October 21, 2018, 10:07:50 pm »
Code: [Select]
TypeError: com_stencyl_behavior_Script.getLastCreatedActor(...) is null
It looks like what you suspected. I think the problem is in your block "disable gravity for last created actor". Any time you create an actor, the Stencyl engine keeps its own Actor attribute that refers to it. If there isn't a last created actor, then that attribute is null and the game will crash when it is read.

Fortunately, the fix should be simple. In the Scenes > Actors tab there is a special block under "Get Actor". Use it to check if the "Last Created Actor" is not null, like in my example. (The null block is in Flow > Advanced). Put your code that refers to the last created actor inside the check.

Thank you so much! I've actually just been using a new character every time there's a scene change, and I had it as the character rather than 'last created actor' originally, but something must've changed it at some point without me realising.

You've been a big help! Glad to know it was just a little error. ^^

8
Ask a Question / Re: Stencyl Crashing when Testing
« on: October 21, 2018, 09:47:36 pm »

On Windows I'm not sure. But I thought of another approach that might be simpler--try exporting to HTML5. Then run the game in the browser and open the debug console (ctrl+shift+j on Chrome... not sure on other browsers) and look for an error that is raised when you enter the region.

If you aren't sure what to look for, upload your HTML5 game and someone else can try to play it and read the debug console.

I did it and got this:

TypeError: com_stencyl_behavior_Script.getLastCreatedActor(...) is null Stuck in Daydreams.js:70799:5
   init/< http://localhost:18524/Stuck in Daydreams.js:70799:5
   com_stencyl_Engine.invokeListeners2 http://localhost:18524/Stuck in Daydreams.js:14177:4
   innerUpdate http://localhost:18524/Stuck in Daydreams.js:25795:4
   update http://localhost:18524/Stuck in Daydreams.js:15179:5
   postUpdate http://localhost:18524/Stuck in Daydreams.js:15271:4
   onUpdate http://localhost:18524/Stuck in Daydreams.js:15267:3
   f http://localhost:18524/Stuck in Daydreams.js:70971:233
   __dispatchEvent http://localhost:18524/Stuck in Daydreams.js:651:5
   __broadcast http://localhost:18524/Stuck in Daydreams.js:742:17
   __broadcast http://localhost:18524/Stuck in Daydreams.js:1527:16
   render http://localhost:18524/Stuck in Daydreams.js:60545:3
   render http://localhost:18524/Stuck in Daydreams.js:37998:4
   f http://localhost:18524/Stuck in Daydreams.js:70971:233
   addRenderer/</< http://localhost:18524/Stuck in Daydreams.js:37423:5
   dispatch http://localhost:18524/Stuck in Daydreams.js:36122:4
   handleApplicationEvent http://localhost:18524/Stuck in Daydreams.js:36581:5
   f http://localhost:18524/Stuck in Daydreams.js:70971:233

I don't really know anything about code so I'm not sure what any of this means. (Stuck in Daydreams is the name of the game)

9
Ask a Question / Re: Stencyl Crashing when Testing
« on: October 21, 2018, 09:20:18 pm »
It's hard to pinpoint the source of the crash without a core dump. The first thing you should try is putting a print statement at the beginning and at the end of the code you posted. If the beginning print statement is logged but not the end then that will confirm that the crash is occurring in that code and not somewhere else.
merrak I'm sorry I'm not sure what that is, how would I go about that?

10
Ask a Question / Re: Stencyl Crashing when Testing
« on: October 21, 2018, 09:03:02 pm »
I was also forced to do a windows update just after it stopped working, in case that's part of the reason.

11
Ask a Question / Stencyl Crashing when Testing
« on: October 21, 2018, 08:54:00 pm »
Hey!

I'm relatively new to Stencyl and it's been working fairly well up until this point. I am using regions in my game to transport the player from one scene to another, and it was working fine until it randomly just started crashing every time the character entered the region. I haven't changed anything in the events, all I did between it working and it not working was add some music. I'm really unsure what the problem could be and it's pretty important that I get it working so any help would be appreciated! :) :)

I attached the logs and a screenshot of the event. All of the scenes transfer using that same event, and they were all working fine before.

Pages: 1