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

Pages: 1 2 3 ... 9
1
Ask a Question / HTML5 and Kong API
« on: July 13, 2019, 02:21:08 pm »
The existing blocks for dealing with Kong's api don't seem to work under HTML5. Does anyone have experience of implementing the api for HTML5?

2
Ask a Question / Another HTML5 Issue
« on: June 06, 2019, 05:24:51 am »
When I clicked on my game after pausing and then unpausing it, it freezes.


Uncaught TypeError: Cannot read property 'scrollFactorX' of null
    at com_stencyl_models_Actor.isMouseOver (Actor.hx:3365)
    at Design_174_174_PauseBTN.hx:313
    at com_stencyl_Engine.update (Engine.hx:2516)
    at com_stencyl_Engine.postUpdate (Engine.hx:2803)
    at com_stencyl_Engine.onUpdate (Engine.hx:2795)
    at openfl_events__$EventDispatcher_Listener.f [as callback] (Tools.hx:756)
    at openfl_display_Stage.__dispatchEvent (EventDispatcher.hx:443)
    at openfl_display_Stage.__dispatch (DisplayObject.hx:1237)
    at openfl_display_Stage.__broadcastEvent (Stage.hx:1593)
    at openfl_display_Stage.render (Stage.hx:1434)


I've tracked it down to a 'if mouse is over' block, as if I remove that block, the game doesn't freeze. It's not the blocks wrapped in that as I've stuck that code in without the 'if mouse' and the code will run.

There's also some code in a custom event that if I remove stops the issue. I just can't figure out what the exact problem is. This only occurs in HTML5.

3
Ask a Question / HTML5 Saving Freezes Game
« on: June 05, 2019, 09:12:08 am »
I've managed to figure out that saving in HTML5 is causing my game to crash, but I don't know why.

This appears in the console. Saving only happens once. I've added a boolean to ensure that it does.

Uncaught RangeError: Maximum call stack size exceeded
    at new empty (Type.hx:118)
    at Function.Type.createEmptyInstance (Type.hx:119)
    at cloner_Cloner.cloneClass (Cloner.hx:99)
    at f (Tools.hx:756)
    at cloner_Cloner.handleClass (Cloner.hx:88)
    at cloner_Cloner._clone (Cloner.hx:65)
    at cloner_Cloner.cloneClass (Cloner.hx:104)
    at f (Tools.hx:756)
    at cloner_Cloner.handleClass (Cloner.hx:88)
    at cloner_Cloner._clone (Cloner.hx:65)

4
Ask a Question / Upgrade System (Multiples)
« on: June 04, 2019, 04:33:16 am »
So I'm working on an upgrade system and I want players to be able to buy multiple levels at the same time.

For instance either 1, 10, 25 or 100 levels depending if they have enough currency. How on earth do I calculate that?

The cost of items is based upon it's current level (current level X current level X fixed value) So 1 x 1 x 10 = 10, 25 x 25x 10 = 6250.

5
Ask a Question / HTML5
« on: May 22, 2019, 01:59:54 am »
I've recently started testing in HTML5 and noticed differences between how Flash and HTML5 handle things. Most noticeably issues with text and labels.

In HTML5 positioning is slightly off, line height is really off.  In Flash, when using labels I was able to tint text by tining the actor is was attached to, which was really useful, but doesn't work in HTML5.

Are these things bugs which are going to be fixed, or things I need to work around?

6
Ask a Question / XML Cannot Build Block (or something similar)
« on: April 12, 2019, 03:43:05 pm »
I ran into a problem where after I'd updated a behavior, in a scene, clicking on an actor that had that behavior attached resulted in a 'this shouldn't have happened' error. The error I saw was 'XML Cannot Build Block' or something very like it.

I tried duplicating the behavior and reattaching it,  but that gave the same error. In the end, I copied the code into a new behavior and attached this to all relevant actors, and that solved the problem.

The issue is solved,  but I'm just wondering if anyone has any insight as to what happened so I can avoid it again.

Sorry, I don't have the logs from the time, otherwise, I would post them.

7
Windows / Mac / Flash / HTML5 / My New Project
« on: December 13, 2018, 12:41:08 pm »
Following on from the relatively successful 'The Strange Disappearance of Eldon Crowe' (https://armorgames.com/play/18500/the-strange-disappearance-of-eldon-crowe) I'm working on a series of games in the same style, in the hope that I can create something better.

Episode 1 (WIP): http://www.stencyl.com/game/play/39747
Episode 1 (WIP): https://gamejolt.com/games/grand-grimoire-chronicles-episode-1/385734
Episode 1 (WIP): https://www.newgrounds.com/dump/item/a3e88fda2efde8b2b27f240ffda46154
Episode 2 (WIP): http://www.stencyl.com/game/play/40137
Episode 2 (WIP): https://gamejolt.com/games/tggc_ep2/417253
Episode 2 (Complete): https://www.kongregate.com/games/BowWow200/the-grand-grimoire-chronicles-episode-2

I'm actually trying to build this as a kit that I can just reuse, and so far that's going well. I can now just create new scenes and tilesets to make a new episode with very little editing of the code.

I've made lots of improvements based upon feedback. Most are quite minor things, but a few are significant. People didn't like the back tracking in the first one, so now you can carry up to six items at once, and there's a map to quickly navigate between areas, once you've unlocked them.

The object interaction is also now more complex. Previously, you could only interact with objects if you had an item to use, but now you can interact with some objects directly, causing something else to change elsewhere, such as flipping switches. There will also be NPCs that you can interact with. There were a couple of NPCs in the first one, but there wasn't any real interaction, but now NPCs will appear/disappear depending on circumstances, and you can interact with them like you can with objects.

8
Ask a Question / Getting the URL
« on: October 18, 2018, 11:13:40 am »
How can I get the current URL that a game is playing on? I'd like the option to perform different actions depending on the URL. Any ideas?

9
Ask a Question / Armor Games
« on: October 11, 2018, 01:55:16 pm »
Does anyone have any experience incorporating third party branding etc. into a Stencyl game?

10
Ask a Question / Getting the time from a remote source
« on: September 20, 2018, 03:27:00 pm »
I'm aware of the Date Extension and I'm currently tinkering with it. I assume that it gets the device time, and so it could be cheated?

Is there a way to get the time from somewhere else, such as the world clock?

11
Windows / Mac / Flash / HTML5 / The Horror Game With a Working Title
« on: September 19, 2018, 10:09:02 am »
This was more of an experiment than anything. A long time ago I started work on a massive point & click adventure, but the enormity of the task made me give up.  I started thinking how I could distill it down into a more basic form and this was the result.

https://www.newgrounds.com/portal/view/717363

12
Ask a Question / Create Actor On Scene Switch
« on: September 13, 2018, 03:22:49 pm »
I have some code that creates the player actor in the next scene depending on which direction the new scene is approached. For example, if leaving a scene from the top, the actor will appear at the bottom of the next scene. However, this will only work if the actors which trigger the switch are positioned at the edges of the game area.

If I want to create the player actor somewhere else than the edge of the game area, well, I've run into trouble. Maybe I've just been looking at this too long, but I can't figure it out, at least in a way that doesn't mean I have to manually create the coords for each individual scene.

13
Ask a Question / Any way to add a behaviour to multiple scenes at once?
« on: August 20, 2018, 05:02:10 pm »
I've suddenly realised that I need to create and attach a new behaviour to every scene in my game. Now I can't select multiple scenes when attaching a behaviour, so do I now have to do this one by one for all 150+ scenes?

14
Windows / Mac / Flash / HTML5 / The Lost Temple 2
« on: July 19, 2018, 05:19:59 pm »
http://www.stencyl.com/game/play/38826 - The game is now too big to upload to the Stencyl Arcade, so it's now on gamejolt instead - https://gamejolt.com/games/the_lost_temple_2/354520

It's on newgrounds - https://www.newgrounds.com/portal/view/716477

The sequel to the original Lost Temple (https://www.newgrounds.com/portal/view/710688)

It's still a work-in-progress. It's missing sounds and music, and some graphics (mainly background stuff, and other eye-candy)

Simple controls: ARROWS.

For the most part the controls are LEFT, RIGHT, JUMP

JUMP also functions as enter/start in the relevant situations.

15
Ask a Question / Collision Bug
« on: July 13, 2018, 01:36:31 pm »
I've encountered a strange bug, and I'm not sure if this has been reported yet or not. I haven't found anything.

I have a tile that acts as a trap using text data to identify it. However it's not detecting collisions correctly. If my actor moves quite quickly towards it, it triggers as though the tile collision shape covers the entire tile, but in reality the shape only covers the bottom 25%.

I can edge my actor slowly over it without triggering it. As you can see from the attached images, my actor is too wide to actually fall into the hole left by the reduced collision shape, but when moving at speed it does.

Hopefully I've explained that clearly. Thanks.

Pages: 1 2 3 ... 9