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

Pages: 1 2 3
Ask a Question / Re: 2D List question
« on: September 28, 2015, 10:03:54 am »
Ah! that seemed to do it! I still have a few bugs to iron out but at least this particular out of bounds exception is not one of them. I may have to see if I can switch over to the extension this far into the project without having to rewrite the entire damn thing.. in retrospect I should probably looked around and see if I was reinventing the wheel .

Ask a Question / 2D List question
« on: September 27, 2015, 03:43:06 pm »
I'm using nested lists to make a grid of tiles for a game.
when running the 'clear' command I want to iterate through the list and remove any tile with a certain value, however, as I remove something from the list the 'repeat [number of items in
    ]' returns with a reference error as the list is now shorter than when the loop started.

    Is there a way to stop or restart a definite loop, or will I need to pre-define each tile beforehand and change the values?

Ask a Question / Background Scrolls Horizontally, but not Vertically
« on: September 02, 2015, 02:29:43 pm »
I've made a fairly large but simple 4095*1536 background image which is put in a scene of equal size. 
The camera is locked to my player actor, when moving left and right the background follows as expected, however when moving up and down the background is stuck to the camera.
Is there any way to fix this?

Ask a Question / Shaky Camera Movement
« on: August 18, 2015, 12:00:32 pm »
When moving the camera vertically moving sprites seem to shake a lot, is there any way to improve this?



Proprioception (/ˌproʊpri.ɵˈsɛpʃən/ PRO-pree-o-SEP-shən), from Latin proprius, meaning "one's own", "individual," and capio, capere, to take or grasp, is the sense of the relative position of neighbouring parts of the body and strength of effort being employed in movement.

Hand-Eye Coordination and Multitasking are your primary tools as you try to get as many points as possible and keep the timer running!
Bonus points are awarded if you match both markers with the minimum amount of moves.
Another .5s is added for every successful match

The game has technically been out on for a while, but as I picked up the indie license from humble bundle, I figured I might as well add a windows download! Give the flash version a go, or download the exe, they're both free!

Ask a Question / Re: Layer Z-Ordering
« on: June 14, 2015, 09:17:40 am »
That's brilliant! Everything seems to work exactly as I need it to, thanks bunches!
I'm currently trying to extend this a bit by adding a separate picture to the image, 
but I seem to be having some issues with the Image From File: block.  I have the image in the extras folder as indicated but It doesn't want to work. For the cards I used the Image From Actor block as a workaround but I'd rather get the from file one to work. I've looked around but most of the stuff I find seems to be pre-3.3

Checked the logs, and I am getting an error message:
Code: [Select]
[Flash] lime.Assets#getImage(303): [Assets] There is no Image asset with an ID of "assets/data/icons.png"

Edit: Derp, apparently this is EXTREMELY case sensitive, issue resolved tho! :D

Ask a Question / Re: Layer Z-Ordering
« on: June 14, 2015, 08:02:25 am »
Potentially changing the text would be handy.
From the looks of it I will require a full copy of the image per card type, correct? I can't draw on an instance, so if i want two cards with different text, that will require two images. Should i plan any upper limit to how many different images I can make?

Ask a Question / Re: Layer Z-Ordering
« on: June 14, 2015, 05:13:18 am »
That worked great! Thanks for the tip!
I've spent some time reworking the game to use actual sprites instead of using the DRAW function.
Unfortunately, as soon as i try to add text i run into the same problem.
The text is all drawn on top of everything, if i try to use the Draw Image for Actor block, that issue is resolved we're back to the same issue as before with them not respecting the Z-Layer order.

Will I need to use the Image API for this? and if so, is there a more in-depth instruction than the official one? it's a bit fuzzy around the edges. 

Ask a Question / Re: Layer Z-Ordering
« on: June 11, 2015, 09:20:41 am »
I reckon i could change the cards to sprites, but would i not run into the same issue with the text?
Any ideas how i could possibly solve that?
I'd love to see your solution for picking up the topmost card if you don't mind, I have a solution for this in mind but I haven't actually made it yet sooo..

Ask a Question / Re: Layer Z-Ordering
« on: June 09, 2015, 01:40:33 pm »
Thanks for the tip, tho unfortunately it does not seem to solve my issue.
I can see the Z index changing on each of the card sprites, but the drawing does not change.
Is this just a limitation of how the drawing function in Stencyl works?

Ask a Question / Re: Layer Z-Ordering
« on: June 08, 2015, 01:21:28 pm »
Further testing seems to indicate that the draw order is the same as the order the sprite was created in.
Is there any way to change this somehow? I tried changing the "drawing" to a scene behavior drawing from a sorted list but this did not give the result I needed.

Here's my current work in progress that illustrates my issue
Press 'Enter' to stack or line up the cards, drag them with the mouse to see them change Z-order (top number)
The mouse will always grab from the first drawn, bottom card instead of the 'top' and lower cards will not overlap later cards regardless of their current Z-order

Ask a Question / Re: Layer Z-Ordering
« on: June 07, 2015, 02:24:23 pm »
That seems to be the issue, It appears to layer them in the order of creation, and the Z layer of each individual sprite does not seem to have any effect.

I guess I could change how they are being drawn to using a list, but I'd rather not if there's a way to kick the Z buffer thing so it works properly.

Ask a Question / Re: Layer Z-Ordering
« on: June 07, 2015, 01:14:19 pm »
Oh, I just realized why this isn't working properly, These are made using DRAW, they are not sprites.
Slightly modifying the question, how can i arrange the Z-Order of drawn objects?
Even if i were to replace the drawings with images I still need to draw text on there and I presume that will have the same issue. Each square is drawn by its own separate sprite.

Ask a Question / Layer Z-Ordering
« on: June 07, 2015, 06:52:58 am »
Working on a card based game, but I am having some difficulty getting the card Z order to change at all..
As they say, a picture is worth a thousand words.

The top number is Z-Order within the layer, the second is Layer ID.
As you can see, they are on the same layer, but the order is completely off.

I try to use the block "Move [self] [to the top] within the layer and the numbers change, but the order does not.
Any ideas?

Extension Ideas / Re: On-line ScoreBoard
« on: May 10, 2015, 02:33:43 am »
That did it!
Seems the reason the Stencyl import doesn't work is because there's no folder in the Zip, so it just dumped all the files straight into the engine-extensions folder.
Time to get crackin' on this online scoreboard then! Cheers!

Pages: 1 2 3