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.

Topics - Exportforce

Pages: 1 2
Hi Peeps :)

Just wanted to check: What API Keys do I need to use in stencyl in order to have leaderboards working?
I used "Your API ID" for "Newgrounds Game API ID" and "Encryption Key" for "Newgrounds Game Key" as I can't find anything else as that but I seem not to be able to setup leaderboards for NG.

In the game itself I use board ID (number) to send it to newsgrounds on the trigger of "Game Over".

thanks :)

Game Source:

Am I missing something? The behaviour does not kill the actor on zero health as I set it up.
Would be nice if someone could take a look.


Compiled game:

I am currently almost finished with the game and it works quite fine, BUT!
After the game ends I have the "do after 5 seconds" where I re-initialize all variables but for any unknown reason it keeps doing that for a length of 5 seconds and after that the game starts to run as it should.
Why is it now reseting all of the values for 5 seconds instead of once?

thanks for help

edit: I set the "timer" only to 5 seconds to be able to make quick checks. The standard timer is at 30 seconds. The 5 seconds do not come from "timer". And I have nothing declared with 5 seconds anywhere else.

edit: The time in which the variables are permanently reset for 5 seconds is the time I use for "do after X seconds"... he not only does whatever I say AFTER the said time but he also keeps that active for the same amount of time. If I say "do after 60 seconds" it will fix the variables after those 60 seconds for 60 seconds.

edit 2: okay I got the problem... in the X seconds that I let the game "wait" it re-initiates that sequence once per frame... >.<


I am trying to fiddle around with a bit more user interaction and wanted to build a super simple game that creates bombs which the user has to click to "disarm" them. So I want to let the game create one bomb every 3 seconds. Per bomb per second the player score goes from 100 one down until it reaches zero, where the game shall end.
I tried the following codeblock on "create", "draw" and "update" but either get a freeze screen or the following error:

I tried to say "while last created actor is alive -> decrease score by 1 each second"


Error:  game freeze
Can anyone point me a bit into the right direction?

Ask a Question / RPG Enemy Variables ?
« on: May 29, 2016, 08:44:32 am »

I am sitting on a new game. One part is enemies and those need multiple variables like HP, STR, DEX, INT, Level and a few more.
I could create 10 quadzillion of lists and set the variables for one enemy each line, but that would be ugly as hell and updating would be a pain in the rear. What is a good approach to store infos like that ?


Ask a Question / Kong-API Question
« on: November 06, 2015, 09:52:47 am »

I wanted to ask how the Kong API works. I have no problems getting the Username, but I fail in adding highscores or stats. They don't show up.

Ask a Question / RPG - Droprates and Monster/Character Values
« on: September 27, 2015, 10:00:10 am »

I am atm struggling with 2 big problems.

The first one is the creation of enemies and characters and their corresponding values.
For small stuff a few lists with matching ids are enough. But when you are starting a bigger project, this way is totally inacceptable.
So how could I create e.g. an enemy with multiple values, without having to create each single value of each single enemy as a single variable ?

More or less the same with droprates. How could I add a droprate value to an item in a usefull way, so I can realize droprates ranging from 100% to droprates like 1:1000000  ?

thanks in advance!

Ask a Question / Good way for EXP->Level?
« on: September 09, 2015, 11:26:15 am »

just wanted to ask, what is your way to when you create an EXP and Levelsystem?
I am currently experimenting different ways, but they all feel quite clumsy and not handy enough...

Windows / Mac / Flash / HTML5 / [Flash][Beta] The Nameless RPG
« on: July 22, 2015, 12:09:56 am »

  • 12 Enemies
  • Weapon Upgradesystem
  • Enemy Raritysystem

It is still plain and simple, to test all features for being bug free.
Nameless RPG is a clicker game, with no idle features (yet).
The weapon upgradesystem works a bit different. Always when you buy an upgrade you have a chance to fail or succeed. If you fail, your weapon won't change but the price will decrease. If you succeed your weapon will get stronger and the price will go up.
Yes the first enemy is a bit tough but it will get better with later enemies as the rewards raise with them! Also enemies have a raritysystem. The more rare an enemy is, the more rewards you will get from them. Also they are visually bigger than weaker versions.

Suggestion Archives / Complete Math-Rework
« on: July 20, 2015, 12:34:50 pm »

as already as a minor suggestion I suggested to exchange math.round, math.floor and math.ceil with their floating alternatives, as stencyl else kills the float to an integer. Also on other parts of the math engine there are lots of functions that reset the float to an integer, which is very bad.

Also it is an extreme pain to do math with stencyl.
For example, I wanted to do a very simple: (X*Y)^Z but with the given possibilities that is totally not doable, at least not as simple as it could be. So I had to break it up and first save X*Y in a variable and than pow that in a second function. For such a short thing it is... okayish... but if I have bigger things where I need to do my math on, which will come soon (I fear that moment) this will get a real serious problem.

Alternatively make an "Advanced" Mathmode where you click yourself a custom code-box together.
Meaning I have all my variables at hand and a calculator and click everything as I need it and the editor puts that one after another into the codebox. So I could for example click
Variable1 + Variable2 +(5*Variable3)^5
And the automated codeblock reads

setValueForScene("SceneEvents_0", "_value1") + setValueForScene("SceneEvents_0", "_value2") + pow(( 5*Engine.engine.getGameAttribute("value3")),5);

Also we need definitly a possibility to select positions after a comma. Like 5.9999995 gets rounded to 5.99 instead of 6

Thank you !

Ask a Question / Actor Creation + Interaction
« on: July 18, 2015, 04:56:57 am »

I am now trying for 3 days a simple thing and ran into some problems of which most I could fix. First off, here are 2 different versions of my approach where "RPG Test" is my more advanced  version.

What I am trying to do:
Create an enemy out of infos from a few lists (HP, Name, Sprite ID just as an example)
The Enemy will be fully static and not fighting back. The player clicks on the enemy and the enemy loses health.
On RPG Test, the creation is running good, but no interaction possible.

On the other try I can easily create the enemy and even make it clickable but I am unable to get any attributes worked out that I can use interactively between the scene and the actor itself.

Also one error I am running into all the time is on the creation where I just let the game roll 0-1 by random, so it is selecting 0 or 1, to get an error where no error could be possibly happen. Same on the creation of the rectangle filler, I sometimes get an error when I test the scene, but that is impossible as the field always is either 0 or any other kind of number and I tried manually the sickest combinations and all worked, even if they looked weird, but no error.

So please take a look at both and give me a hint of what I am doing wrong to achieve that simple goal.

(Please note RPG Test is the major example of what I am trying)

Ask a Question / Creating Enemy + HP Bar - > on kill next enemy
« on: July 16, 2015, 09:32:29 am »

I am already quite far with learning on Stencyl, thanks to this cool community :)
My first game already works better than I could have thought and at the moment no problems on that one.
But I already have a second little game in my head to learn stencyl better to understand and for that I have a static little square of pure evilness, which has to be killed, else we will all gonna die.

So as I can't find a way to create 3 dimensional arrays I created myself 2 lists.

List 1: Enemies
0. Square
1. Evil Square

List 2: HP Values
0. 15
1. 150
(This way I can add as many lists and just make a random roll to select one number and use it for all lists and have a full sprectrum of values with one roll at hand.

I also already drew myself a most beautiful rectangle which I can fill.
Now I have the following problem:

How can I now say: Get yourself a new enemy and draw actor X, give him values of those items from these lists.
The super sexy rectangle gets filled to 100% and when the player attacks the super evil square the alloted damage will deduct the temporarly set HP and reflect that by the rectangle. If enemy dead -> everything starts from above

I looked through that now around 2 hours and can't find myself a way to do that...
Btw. This is my sexy rectangle. placement for the super evil square doesn't matter, as I can move it any time.

Suggestion Archives / Switch round to fround!
« on: July 15, 2015, 12:10:51 pm »

please switch the round function to a fround, as round converts the number to an integer which is bad for games with large numbers.

Also please add a function, to morph large numbers to scientific notations.


Ask a Question / [Question] Save Game
« on: July 13, 2015, 02:03:52 pm »

except the Numberformatting my game works very well, so I wanted to add save and loading.
So I created a copy of all variables I need to save as a game attribute and went this way to save them every few seconds:

But the values stay empty, eventhough the variables are being saved, but they stay at their standard value and this setting seems to be fully ignored.

Ask a Question / [Question] Numberformatting
« on: July 13, 2015, 07:01:50 am »

already thanks for the help :)
My Testgame is coming along way better and faster than expected, but I am running into a problem and that is number formatting.

1. Problem
With already harmless multiplication and division I end up with wrong rounded numbers, so I use  floor/ceil... so far so bad.
How can I force the number to round to 2 decimals after the comma ?

2. Problem
How can I alter a number into scientific notation ?

Pages: 1 2