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

Pages: 1 2 3 4

Hello dear fellows, I need some guidance in order to integrate sdk for html5 games for one of my games.
their sdk looks like this:
Code: [Select]
Add following rows into your index.html file, this will initialize SDK.
Fill gameId and and use SDK events (mute audio, pause game and after that resume game logic).

<script type = "text/javascript" >
   window.SDK_OPTIONS = {
      gameId: "your_game_id_here", // Fill the game_id
      onEvent: function (a) {
         switch ( {
            case "SDK_GAME_PAUSE":
               // pause game logic / mute audio
            case "SDK_GAME_START":
               // advertisement done, resume game logic and unmute audio
            case "SDK_READY":
               // when sdk is ready
            case "SDK_ERROR":
               // when sdk get error
(function (a, b, c) {
   var d = a.getElementsByTagName(b)[0];
   a.getElementById(c) || (a = a.createElement(b), = c,
   a.src = "", d.parentNode.insertBefore(a, d))
})(document, "script", "gamemonetize-sdk");

Invoke an advertisement in your game on following states: "play button", "continue game" , "new level" or when user complete every level:

Step 1 done. I have added the above code without any modification inside my index.html file.
Step 2 done. I have managed to make a call inside the behavior of my level select button so that when a user clicks on it the sdk will load and will display a test advertisement (short video of 10 seconds + audio ) that overlays the game as expected, yet the audio from the advertisement and the audio from the game will mix together.

I can't figure out how to  pause the game while the test ad is playing by writing some piece of code  in this section here:
Code: [Select]
               // pause game logic / mute audio
For example I use the Pausing behaviour from StencylForge to pause my game and by looking at the code it's generates inside the game.js file it looks like this:
Code: [Select]
g.pause = function() {
doing something like the code below on index.html doesn't work, it will break all, the sound from advertisement will play at the right moment, the game background music also plays over the sound generated by the ad, but the video for advertisement doesn't overlay, and does not take over the game graphics  :
Code: [Select]
                 g.engine.pause();  // pause game logic / mute audio

Same question for unpausing

Looking forward for some guidance.

After several retries with unistalling and installing all over again with no success I have downgraded to 4.0.1 version and the game works perfect again.
Also I have installed 4.0.2 version on a computer that never got stencyl installed before and the  game works perfect on that computer.
So there must be a problem with upgrading from 4.0.1 to 4.0.2

Yes it does have this folder and neko.dll is inside neko-win32 dir

Hi Justin and thanks for the quick answer. Just tried commands you provied  and I get the following error:
"The program can't start because neko.dll is missing from your computer"

I just upgraded to the latest Stencyl release 4.0.2 and none of my previous game works.
All scenes loads fine, works editing etc, but when trying to test a scene or compile the game for flash or html5 I always get the Failed: Building for Flash. (Return code: -1073741515) error.
logs attached.

Previus version of Stencyl worked perfectly for me I just upgraded because of the scene layering bug, that I had to solve using that python script.
Looking forward for some guidance to solve this issue.

My system is running windows 7,

Ask a Question / Re: Make an actor slide for 2 seconds problem
« on: November 20, 2019, 11:20:58 am »
Finaly managed to get it work like I wanted.
Many thanks to Photon for his outstanding tutorial featured on his blog:

Ask a Question / (SOLVED) Make an actor slide for 2 seconds problem
« on: November 18, 2019, 10:09:42 am »
Hello, to all, hope I can get a bit of help from someone more experienced as I got stuck on a behaviour I'm trying to build for a character.
So here is my problem:
I have a character to be used inside a running game: the controls are UP key - jump, X  key -fire, Down key - slide.
My  problem relates to sliding behavior in the following way.
As my character is set to continuoslly run by itself, Once I press the DOWN key I need the character to slide for 2 seconds, if the DOWN key is still being held preesed after the 2 seconds passed the character should get up automatically and continue with running animation.
If the DOWN key is released the character should automatically get up and continue running.
Once the DOWN key was released the character should be able to slide again etc.

My code works but not as aspected, I believe it's a timer related problem, so I kindly ask for some guidence in order to find a better way to build this behaviour.

Outstanding game, I really enjoyed playing and it, congratulations
 I have published the flash version to my dedicated  online games portal yet due to it's fixed resolution with a width over 850px it cuts a bit from the right side of the screen.
Normally I use a maximum width of 720px for the published games but in order to have this one work, I had to add some html code to extend the view area a bit?
May I ask why didn't you make it scale to fit the "screen" ?
Here is how it looks now:

Here it is.
Create also a collision event that sets to 0 the Jump attribute only when the actor is on ground.

<a href="" target="_blank" class="new_win"></a>
Thanks a lot Liberado, this kind of variable Stencyl jump behavior Super Mario style was exactly what I was looking for.

Thanks for your review

Well it looks interesting to me, but level 2 it looks like it's endless. What;s your plan with this game?

Hello to all,
back in October 2016 I discovered Stencyl and I said to my self:
This looks really promising, so I started working on a project that I had in mind for a while. My coding skills were limited to basic C++ instructions that I learned in school so even though I had some introduction into programing it was still a challenge for me to apply this in order to create a game from scratch.
Thanks to some basic behaviours available on the Stencyl Forge, video tutorials posted by TheIndieStation and with the help of other great fellows here on this community I'm really excited to announce that my project is finally finished.
So here it is:
Freddy Nightmare Run 3 - a platform game where your character, a young boy that loves playing video games must survive inside his terrifying nightmare.

Test the game here --> Freddy Nightmare Run 3

Feedback and especially critics are "a must" :)
Few screenshots:

Ask a Question / Re: flash not fit the window
« on: May 11, 2017, 10:20:15 am »
Thank for the update.
The preloader in my case it's a coded scene inside the game, not an imported swf.
Indeed I can confirm the font problem.

Ask a Question / Re: ALT key bug in Stencyl
« on: May 11, 2017, 10:17:31 am »
The bug is only present when testing locally in stencyl flash player, when playing the game inside a browser everything works good.

Pages: 1 2 3 4