Stencyl 3.4.0 is now out. Get it now!

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

Pages: 1 2 3 ... 70
Journals / Re: 3D Library Adventure
« on: October 16, 2017, 10:29:05 pm »
Thanks merrak. Light/Shadow is on my todo list.

The last two weeks I’ve been working on the extension code.

I started with blocks for everything but that became quite a mess:

This was only a very small part of the estimated final implementation.

Then I discovered that I could do a lot with (HaXe) Reflection.

Again I had to redesign the extension code base.
Also, I decided to split the extension into two parts. One is to help finding the TEXT parts of the
blocks. This can be altered once Stencyl allows extension blocks to have dependent dropboxes.

The current core extension is this:

The game is now a First Person Maze Crawler:

A previous-path indicator is necessary to avoid running in circles :D


Journals / Re: 3D Library Adventure
« on: October 08, 2017, 02:33:52 am »
Thanks for trying to help merrak : I appreciate it!

But :                    I was sooo stupid!

  • 3D Maze had a scale on it (different from the player+stencyl tileset)
  • Camera adjusted to 3D Maze rather than player
  • Actor in Stencyl was not 32x32 , which I assumed it was !
  • Too focused on follow mouse behavior

I’m still going to find out how to get a better mouse behavior, but it was too confusing for so early on in the 3D game development!!!

Click on the image to play


Move with the arrow keys

You can adjust the properties of the objects. Use the mouse to click on < and >

Journals / Re: 3D Library Adventure
« on: October 07, 2017, 08:02:06 am »

Last week I’ve worked on getting a real 3D Maze Game going.

Creating extension blocks along the way.

I need a mathmagician to convert 2d coordinates to 3d and 3d coordinates to 2d coordinates

This is what I did with the mazegenerator data. I’ve created dynamic tiles based on the generated data.

The ‘follow actor with mouse’ behavior was set on the player and this is how it looks :

In game effect:

But once I tilted the camera the Z-coordinate was misplaced and it messed up!


For someone who is more familiar with 3D programming this might be an extremely easy task but I’ve yet to find the magic code.

If anyone can point me in the right direction I will be thankfull! I've been messing with this a couple of days now :(

Ask a Question / Re: Manual 2D list input
« on: September 28, 2017, 05:25:54 am »
You can use a list in a list but you need to convert that text to something that Stencyl understands as a list.
Did not test it:  but I would assume that you would need to use the split block.
So if your line was [ get item # [ItemInc2 ] from [get item # TileID ...] ]
it should be something like [get item # [ItemInc2]  from  [   split text  [get item # TileID ..]  using [,] ]  ]

That split text block will create a list from a string. So your string is 0,0,0,6,11 etc..  and that would be used to create the list.

Extension Ideas / Re: GUI Extension [Unsupported]
« on: September 27, 2017, 10:12:36 pm »
Take a look at the title of this thread: unsupported
It is discontinued.

Journals / Re: 3D Library Adventure
« on: September 26, 2017, 09:42:04 pm »
Thank you Squeeb for your nice words.

So far I only managed to get 3D Objects to appear BEHIND Stencyl objects. So a 3D background should be feasible.

There is one major issue I have with combining a 3D scene with Stencyl: Scene background in Stencyl should be set to 'no color'.
Once you have one scene in Stencyl with a (gradient) background it will  never show the 3D scene again.
Hopefully one day I find a way to workaround this.

I've already made a really simple 3D Scene based on some Stencyl actors with Box2D physics on them so I want to experiment with this further to see if I can make 3D objects match all the physics engine stuff that Stencyl has. Rotation, Position, Scale should be feasible, but I'm not sure on the mass/airflow effects. At least this gives some 3D effect but on a fixed z-axis.

We will see what comes out of these experiments!

Journals / Re: 3D Library Adventure
« on: September 25, 2017, 08:29:47 am »
@Merrak: As far as I can tell your issue should be resolved. At least when you start at position 16 and keep your shapes connected.

Today I started to create the actual extension.

I was generating a bunch of meshes using the extension block with random mesh data.

Drawing meshes is as expensive as the Stencyl Actors. Here are some of my test-results:

Dropping to 30-40 FPS when hitting the number of meshes:
Flash in VM   100
HTML5 in VM   50
Windows in VM200
Mac OS     200
iOS Simulator   40
Android(nexus 6)   80

Note: I was using virtual machines and a MacBook from 2011 so newer (real) hardware might do it better.

Ask a Question / Re: Get current FPS
« on: September 25, 2017, 01:47:09 am »
Hello Dincicode,

There are several ways to get this value.

You can do it with stencyl blocks and use attributes. Increment attribute inside draw event and use a do every 1 second event to reset that attribute to 0. I used another attribute to store that value before resetting it. That other attribute I use in the draw event to display that current fps.

You can get the openfl currentFPS from a code block but you need to initialize it first.
Add Event -> Custom Code Block
Inside it:
Code: [Select]
var fps:openfl.display.FPS=new openfl.display.FPS();
In a draw event:
draw text [code: [fps.currentFPS] ] at (x:xxxx y: xxxx )

Hope this helps.

Journals / Re: 3D Library Adventure
« on: September 25, 2017, 01:17:01 am »
Thanks for the feedback BonZero.

Today I'm starting to create the actual extension as I  ( think I ) have now most of the sample code ready to make a first person maze walking game.

One of the things I will be looking at for other projects are  3D background(objects) for a 2D game. As well as a 2D based platformer that is visually a 3D representation.

Journals / Re: 3D Library Adventure
« on: September 24, 2017, 11:28:05 pm »
Thanks for this. I was able to reproduce.
The disconnected regions will not be created into one mesh, but it should at least do the H

A note : the routine assumes that your maze starts at 16 ( position 1,1 )
But even with that note I couldn't get a line on 16 to 91 work.

I will have to see what is going on.

Journals / Re: 3D Library Adventure
« on: September 24, 2017, 10:22:10 pm »
So sorry that you seem to be having problems with this.
The generate 3D button disappears when there is no blue path.

I think you are trying to create a maze where the blue line can't be generated. Care to show me a screenshot? This happens to me sometimes as well. But usually clicking some paths away or add one or two solved it for my occasions.

Journals / Re: 3D Library Adventure
« on: September 24, 2017, 12:20:25 pm »
Thanks for the feedback.

Yeah, once edited you click on Make Path to get the Blue line across your work. If the blue line can't be created it might conflict / intersect some other part. The idea is that the outline is a continuous shape / line so that it can become one mesh with vertices.
I use the Linear Extrusion method from the Library.
There are other means of accomplishing this but the shapes I got with this outline-method are very cost friendly.

Journals / Re: 3D Library Adventure
« on: September 24, 2017, 05:44:25 am »

New version with which you can also view the mesh.

Maze Generator Viewer

Journals / Re: 3D Library Adventure
« on: September 23, 2017, 10:25:58 pm »
Hey Merrak,

Glad you liked it! The animation they had on the webpage was awesome and gave me instant convidence. Porting the code took me less than I would have anticipated.

I'm working on the 3D viewer now :D

Ask a Question / Re: Seeking Feedback
« on: September 23, 2017, 11:09:00 am »
It would be helpful when the buttons/pause etc.. where on the same spot for all the games.

My list ( best on top )

1.  Planet
2.  Skull Castle  (would like to have the skulls not wrap)
3. Robotz
4. Knight dash
5. alien storm
6. Tank
7. Bomber Run
8. Dog fight

Pages: 1 2 3 ... 70