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
16
Hello dear fellows, I need some guidance in order to integrate gamemonetize.com sdk for html5 games for one of my games.
their sdk looks like this:
Code: [Select]
STEP 1:
Add following rows into your index.html file, this will initialize GameMonetize.com 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 (a.name) {
            case "SDK_GAME_PAUSE":
               // pause game logic / mute audio
               break;
            case "SDK_GAME_START":
               // advertisement done, resume game logic and unmute audio
               break;
            case "SDK_READY":
               // when sdk is ready
               break;
            case "SDK_ERROR":
               // when sdk get error
               break;
         }
      }
   };
(function (a, b, c) {
   var d = a.getElementsByTagName(b)[0];
   a.getElementById(c) || (a = a.createElement(b), a.id = c,
   a.src = "https://api.gamemonetize.com/sdk.js", d.parentNode.insertBefore(a, d))
})(document, "script", "gamemonetize-sdk");
</script>

STEP 2:
Invoke an advertisement in your game on following states: "play button", "continue game" , "new level" or when user complete every level:
sdk.showBanner();
.

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]
case "SDK_GAME_PAUSE":
               // pause game logic / mute audio
               break;
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() {
  g.engine.pause()
 };
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]
case "SDK_GAME_PAUSE":
                 g.engine.pause();  // pause game logic / mute audio
               break;

Same question for unpausing

Looking forward for some guidance.

17
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

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

19
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"

20
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,

21
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: https://photongamedev.wordpress.com/2013/06/03/the-do-after-dilemma-building-your-own-time-tracking-mechanic/


22
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.


23
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: http://rungames.org/running-games/play-duke-dashington-remastered

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

<a href="https://www.dropbox.com/s/ybcek9lq1uvl3s9/Variable%20Jump.swf?raw=1" target="_blank" class="new_win">https://www.dropbox.com/s/ybcek9lq1uvl3s9/Variable%20Jump.swf?raw=1</a>
Thanks a lot Liberado, this kind of variable Stencyl jump behavior Super Mario style was exactly what I was looking for.

25
Thanks for your review

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

27
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:


28
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.

29
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.

30
Ask a Question / Re: ALT key bug in Stencyl
« on: May 11, 2017, 04:21:47 am »
Is there a solution?

Pages: 1 2 3 4