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

Pages: 1 2 3 4 5 6
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 / Re: Testing Site Lock
« on: July 17, 2015, 01:17:48 pm »
Yeah, painfully hurting that I am that blind ^^

Ask a Question / Re: Testing Site Lock
« on: July 17, 2015, 01:10:13 pm »

Ask a Question / Re: Testing Site Lock
« on: July 17, 2015, 01:04:15 pm »
Might I ask how you add a Sitelock ?

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 10:09:02 am »
Sorry for the double post, but could it be that the lists are broken ?

I just, for fun, did a test list and wanted to print out the amount of items in it and it clearly is 3 items and yet it kills with a zero error.

Edit: Updated from 3.3.1 to 3.3.2 and now it works... well.. I already did everything right, was truly a bug >.<

Edit 2 (20:27 German time): Okay now I run into another funny bug. I got told  that the content of a value for drawing a rectangle is wrong. The value is a numeric value, always. I manually tried even a 0 and that is fine. So every possible content, which is a number, must be legal, yet sometimes it cries about incorrect value. I am really getting desperate, as I can not find any logical errors, what's 'o ever.

This shows the creation of the enemy. All values verified about 100 times, that they can not be empty or in any range that would be not ok. I even made an extra attribute "createenemy" which is boolean, because "if(current_hp<=0)" and "while(current_hp<=0)" both sometimes created 2 or 3 actors, which is very weird as well, so the loop can never ever create more than one actor.

This shows the creation of my Healthbar-Rectangle and the filler, that displays the health in a %

THIS part gets ignored completely. I can click as I want, neither values change, nor the sound is played.
(I know here it shows "exits" it was just a test of enter and exit if it at least somewhat anyhow reacts)

Please help me, I am really desperate by now

        g.fillRect(250, 435, ((_currenthppercent / 100) * 170), 20);
This line sometimes again and again gives me an error, that a parameter would be wrong. But everything that _currenthppercent has in, is numbers and thus can never cause an error.

Ask a Question / Re: How to find cause of seemingly random slowdown
« on: July 17, 2015, 07:57:04 am »
Try to think when it happens, where the code is on the time stuff happens.
Thats the best tactic.

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 06:57:53 am »
My Build is 8398.

Well, the zero there is "if the hp are zero" but I even already tested to set this to one.
And GetActorType 0 is one of the two possibilities as the list as 2 items. ID 0 and ID 1. So these zeros should be legal too.

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 06:19:34 am »
Okay, I thought it works like every randomizer in terms of rand(0,5) to get a random from 0 to 5. But just tried with a -1, but doesn't work too... always getting the very same error...

TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
   at MethodInfo-5206()[Source/scripts/SceneEvents_0.hx:130]
   at com.stencyl::Engine/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2382]
   at com.stencyl::Engine/postUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2584]
   at com.stencyl::Engine/onUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2577]

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 04:39:36 am »
Nope, that is fully ok and intended to be zero

Thats the project. I really can't find any idea where an error could be. I only can think of anything with the lists,  as something might work differently then I think.

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 03:47:03 am »
Well, when I want to add an actor, I look for "create actor" a type is a version of something, like number is a type of valuestorage for attributes. :) Easy to misunderstand.

I now moved the actor creation part into an "updated" as "always" and get the very same error about a zero.

Ask a Question / Re: Creating Enemy + HP Bar - > on kill next enemy
« on: July 17, 2015, 01:20:17 am »
I don't use behaviours.
I am now this far, finding out that "Actor Type" is not a type but the actor itself... -.-
But when I try to preview that scene it prompts me an error for a bad zero

Ask a Question / Re: Disabling controls and time
« on: July 16, 2015, 12:17:49 pm »
Try if (timer)<=0 -> do stuff. So as soon as you hit 0 stuff happens what ever you want to do.

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.

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 03:14:45 pm »
Okay, that is already just too obvious. Thanks!
Are there any other functions that make integer out of my numbers except round, floor, ceil ?

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 02:36:20 pm »
Well... I guess floor and ceil also make a number to int ? Is there an alternative to round to like Math.fround for ceil and floor ?

Pages: 1 2 3 4 5 6