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

Pages: 1 2
1
Ask a Question / Re: Backgrounds taking up massive space?
« on: March 08, 2019, 11:44:09 pm »
You can to go Game Settings -> Atlases -> (select tabs) to see which resources and scenes are using the most memory. RAM usage and file size correlate pretty well, albeit not perfect, but well enough that it could help you pinpoint which images or sounds are most demanding. If you're generating a desktop build then you can look in the generated assets folder and see the individual files.


Thanks, Merrak.

At the moment I don't have a clue of what atlases are and how they work, so I believe my next task should be finding tutorials for that ASAP!
However, just after I posted this (seems like this happens every time, as soon as I post a topic I stumble upon the most simple solution).
What happened, was that I went to Run > Clean Up Project. The export after that dropped to 26Mb. Which is just fantastic! So it might as well have been a cache error.

What I can't phatom is the fact that Avast keeps interruping my game as it compiles (over accusations of viruses!), so I need disable it in order to work.

That apart everything seems fine for now. I'm having loads of fun with Stencyl and I don't think I ever learned this much in my life, even with all those 4 years in college.
Thanks again!!

2
Ask a Question / Backgrounds taking up massive space?
« on: March 08, 2019, 11:21:11 pm »
My game's screen is 640x480px, but all of my scenes are 1920x1440px (60 by 45 tiles).
I have decided to make parallax backgrounds on every scene as working with tiles simply wasn't working.
Which means I'm drawing images at 1920x1440px. They're all .jpg (despite the loss of quality), and have around 1.5 Mb each.

Despite that I've been importing them at 1x scale, I was stumbling on that "Stencyl has reached 90% usage" and had to do that little trick with the .bat file to alocate more memory for Java. Until now.

I had 3 backgrounds and my game's export was around 200Mb. I added 4 other backgrounds yesterday and the export grew to an overwhelming size of 700Mb. Like. What in heavens?!?

I gave a short break on drawing and went back to coding. Made a new function, tested, and hooray! Time for a break. When I came back and restarted Stencyl I kept getting the error "Your game could not be built, because one of your images is too large to be included. Check your backgrounds and actors with large sprite sheets. (max_string_size reached)", and with that I couldn't even open any scene anymore.  :(

After some reading, I decided to uncheck the scaling on the Settings tab and go into Debug>Game>Clean up unused files.
After that, I was able to test the scenes again. But the game's export is still HUGE!

Those 7 scenes are the tutorial only!
I can't have a game that occupies so much space. I don't even have any actors moving around yet except for the player! What about when I finally add in the enemies? I can't even imagine.

Is there a fix to this? I can't end up with a 10Gb game :/
How could I even back that up?

Also, I'm not planning on releasing on mobiles. It'll be PC only, so I can discard a lot of things, I imagine. But how???

3
Ask a Question / Re: Actors of the same group are NOT colliding.
« on: March 03, 2019, 08:33:13 pm »
So, if there is one box, the player can push it, but if there are two boxes (one right next to another), he's not supposed to push both at the same time, is that what you need...?

I have this situation where my player pushes boxes too, but I had no issues, I just made the box heavier so he can't overdo it.

Update:
Yup, just tested it in my game. My player is from the players group, but I enabled the group to collide with actors. So my 'Big Crate' is a normal actor with no special code. It just has normal moving and gravity behavior, and on that same tab, on the heaviness property, I have it up to about 12kg. Takes a while to push, but the player can't push both at the same time because it is just way too heavy.

Not sure if that helps, though   :-\

4
Wow! Thank you once again, Justin. I'll be giving that a try :)

5
Phew, this question was hard to squeeze with the characters limit, so I'm going to try to explain it better.

I'm using the Dialogue Extension. So far so good. I only need to fix some issues regarding portraits/faces (and I believe TheIndieStation has tutorials on that, so I'll work on that later on) and special characters such as á, à, ã, ä, ç, ñ, etc., since right now they make my game crash and not using them would be gramatically unnaceptable (my game is in.... portuguese  :-[).

But my question is another.

Let's suppose that, at the start of the game, I prompt the player to type their name. I'll store that into a GA.
But how to I use/refer to it in the dialogue?

Example of some dialogue chunk:
--- "Hi [[player's name]]! Have you had a nice sleep?

If it's not doable I'll drop it, but it would be nice to have that option.
AlsoI would still need to investigate  this name's input and how to display it.
But anyways.

I know you can change game attributes through dialogues, but how can you display Attribute's values in-dialog?
Is it even possible...?

6
Ask a Question / Re: Save/Load blocks not working properly
« on: February 26, 2019, 10:11:52 pm »
Well, looks like... I solved another problem  :o :-[

Maybe I'm being too hasty, but believe me when I say -- my project is running against the clock, and my graduation counts on it, so, yeah... Anything that starts misbehaving sends me all the way inside the realm of desperation and chaos.

This time I wasn't able to solve it by myself though. A partner actually searched some tutorials for me. And this one did it:
http://community.stencyl.com/index.php?topic=29215.0q

The block "get scene with name" no longer exists with that name, and you just need to place a "scene with name" + GA.

My game has very few GAs. In fact, it already saves all of them automatically and the only one I need to save manually is the scene name, nothing more.

The saving system is now working so nicely it even saves the actor's X and Y (despite the fact that I don't remember saving them, but that's a plus, I guess) and the Health, so Scene Switch Behavior and Health Manager Behaviors are miracles too.

7
Ask a Question / Re: Save/Load blocks not working properly
« on: February 26, 2019, 11:27:00 am »
So, a few minutes after this (I had forgotten to actually post the topic, hence the weird timing), I decided to change my workspace, see if that changed anything.
Put it on "My Documents" instead.

It didn't correct it. What it *did* do is make Avast start tripping on every single .exe on the process and mess up the entire compiling system. And then, my game was broken again.

Several deep inalations later. I deleted the game and re-imported from the save from yesterday, just before implementing the save/load features. I put the exat same codes back in.

The saving works, because the 'draw text' is saying it was successful.
However, on my main menu (which only have a New Game and Load Game options, when I click the Load game, which has the LoadGame behavior from the post above, nothing happens. In fact, it doesn't even say if the save failed or succeeded. It is just... dead inside?

What is going on here, guys? I usually use Cppia to test it, but Cppia doesn't show any possible exceptions. For this test I was using Flash. But nothing pops up. There are no "errors". So why?

*Update*.
A few hours after this. I decided to do a thing I haven't done in years because it has never worked anywhere I tried. But I deleted the Load Game actor (it's an image that says Load Game, and it is an actor) and put a new one at the exact same place.

Now it's back to saying "load successful". But since there is no scene transition, I wonder:
-- What exactly has been saved? What is being loaded?

My game is a 2d platformer, but it has story. I don't want a level selection screen unless I really have no choice. I want the player to save at certain places and when he comes back, he picks 'load game/continue' at the menu and the game puts him back on the scene he was in.

How can I achieve this?

8
Ask a Question / [Solved!] Save/Load blocks not working properly
« on: February 26, 2019, 11:19:03 am »
So at 2AM yesterday I decided to follow a tutorial and finally get going with the save feature for my game, as it is basically the only main function missing right now.  I was folowing this tutorial >> https://www.youtube.com/watch?v=sfzGi2LuBPE and everything was doing fine.
That is. Until my computer decided to bluescreen on me.
When I restarted the computer -- surprise!! My whole game was corrupted and I was unnable to open it. My last export was 2 weeks prior, and I had to remake the Key Items and Cutscenes feature. However, since they were pretty simple features and I had screenshots of the codes, I managed to get them back in a few minutes. And then I went back, restarted the tutorial for the save/load features and followed it through.

However.

Before my computer bluescreened, the game was doing that fine load feature after I saved, exited and restarted. Now, after I had to recover the project from a backup and start over (and, despite that I remade the missing code exactly as it was before), the load feature is no longer working. It does say "load successful", but doesn't change scene. At all.

Here's some attachments of the codes.

9
Posting on this old thread just to add close this topic.
I was solving other issues on the game, so I hadn't tested the list thing out yet, but when it came down to it, it only took me about 20 minutes to get it to work.

I know, I know, it's not optmized, it doesn't check for errors... But it's just a quick solution that I'm using, and it works (which is what I need right now, so I can check this out of my to-do list).  And here's an attachment of how I worked it out, in case anyone needs a light on the subject.

Also, please note that I'm making use of the Dialogue Extension, which can be found here >> http://dialogextension.com/ ,
and to make it work properly I heavily suggest following TheIndieStation's tutorials in here>> https://youtu.be/Ie04d0fgLXA .

(My code is inside the Scene Events).

10
OK. SO. I managed to fix it. And it was actually super simple.

To help anyone having this problem in the future (or so I hope so), I'm going to post my findings here. :)

First up, I'd like to refer to this topic http://community.stencyl.com/index.php?topic=5211.0 and this other helpful topic http://community.stencyl.com/index.php?topic=4453.0 .

What was happening, was that since my actor was there on the scene but not on the 'visible screen', the player was being considered as 'off-screen', so the behavior wouldn't detect him and 'teleport' him.

I feel so silly! Ahhhh.... Maybe I should take a break for today ._.

The code that solved this issue was on the Player character. Under Events, put a When Created block and add a "make Self always active" and voilà!

11
This title was... difficult to explain. Mainly because it is a little complicated, but let's go by parts.

I'm working on a plataformer game, classic Castlevania-ish. I was having a huge chaos coming up with a nice scene switch manager (as most people in here do, I suppose), so I decided to follow The Indie Station's tutorials. I ended up using the same code they used on their RPG game, with some modifications so you could actually have more than one exit on each side of the screen for neatness' sake (and because the gravity settings could mess up a little), etc, etc.

First Issue: the code didn't work if the screens had different sizes. I solved this by -- surprise -- making all the scenes the same size (60 tiles in width, 45 in height). And, neato! It solved.

Kinda.

When I tested this code using 20x15-tiles scenes, it worked wonders. You could go Left-Up, Left-Down, Right-Up, Right-Down, Scene Up, Scene Down and the code would take care of it with absolutely no problem at all.
But. After attaching the behavior on my 60x45-tiles scenes, I noticed that the code works just fine, except when you try to go back to Scene Left UP, Scene UP and Scene DOWN.

If the codes for Scene Left UP and Scene Left DOWN are the same, and only change on the Y position of the player why doesn't it work? Left DOWN works, Left UP doesn't. Right UP and Right DOWN work just fine. And, as I said, on the test scenes, all of them worked.
It is transitioning to the right scene, but the spawn seems to go wrong, as the scene ends up centered at the wrong place (despite that I have codes on every one of the scenes that more the camera to the player every 0.01 seconds), and the actor doesn't show up.

There are no errors. (as in, null pointer or any of the sorts). I Have double checked the camera follow, and checked if the actor is in every scene about 12 times. And I can't seem to find the issue.


-----------

Edit

So, I figured something! For some reason, the original place where the player character is place seems to matter, but I haven't figured out how.  On some scenes, he can be super far from the entry and he's still teleported there. On other scenes, even if he's very close, the behavior doesn't seem to 'catch' him. He just... disappears. The camera does move to where I originally placed him (it centers around that). But the player isn't there. And nothing moves. And no exceptions pop up.
 :o :o :o

So, how to solve it? Any suggestions would be much appreciated!

My code for the scene behavior is attached.

12
Thank you, @JeffreyDriver. I'll be giving that a try :)

13
You could have a empty global list and when you enter a scene, check if the scene name exists in that list.

If it doesn't show the text and then add the scene name to the list.

If the scene name does exist in the list there's no need to do anything.

How does a global list works? This is a variable I haven't worked with yet. Does Stencyl happen to have a page on that subject?
Thank you very much for the answer.

14
Hello. This is my very first time asking a question and I'm also new to the community so I hope I'm not doing things too wrong.

I am working on a 2D platformer, using Stencyl version 3.4.0 (I fear updating might cause some bugs, so I'll refrain from updating for now). As the title of the topic says, I'd like to know how I can make an event happen only once. In this case, it's really just a cutscene which I want to happen only once.
Since it is a platformer (I'm going for a Castlevania style here) and the player can go back and forth between scenes, I would like to find a way to make a cutscene appear only once. Example: player enters the scene for the first time. Some dialogue appears (I hope to ble able to try the Dialogue Extension soon!). The cutscene should not reappear after it was already shown even if the player enters the scene again.

Do I have to rely on game attributes here? My first thought was a boolean, but then I would need to have an attribute for each cutscene. My guess is that it wouldn't be too nice. My second guess was to use a number attribute and check the number at the start of the scene to see if the cutscene should be played.
(Ex.: if Cutscene==0, then [...]; and when the cutscene is done playing, it increments the number by 1 so that when it checks again it won't play).
I currently do not have a code for this in particular, just ideas.
If someone could share some insight, it would be very much apreciated.

15
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 10, 2019, 09:36:51 pm »
Well, that was a strange server indeed! Thank you so much for bringing this back. I hope to get my brain and hands testing and playing with it ASAP!!

Pages: 1 2