Flying Script Makes Tiles Invisible? Fixed

ChunkyMonkey

  • Posts: 430
I'm currently working on a jetpack game, and this flying script I used makes tiles disappaear. Whenever I remove this script, They show up again. Do you see anything wrong with this script?

« Last Edit: January 20, 2012, 01:49:52 pm by ChunkyMonkey »

Hectate

  • *
  • Posts: 4643
Are your tiles actually actors?
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

ChunkyMonkey

  • Posts: 430
Are your tiles actually actors?
No. This is how the screen looks before I attach the script and after.

coleislazy

  • *
  • Posts: 2607
Is there a chance that your actor is flying off that screen and into a part of the scene where they are no tiles?

ChunkyMonkey

  • Posts: 430
Is there a chance that your actor is flying off that screen and into a part of the scene where they are no tiles?
No, Because I tried trapping it in a box of tiles (and see if it would try to fly through one) but it didn't work, once again I can't see the tiles. I'll post back in a bit, right now I'm trying to see if this happens when I reduce the scene size.
EDIT: That didn't work :/

« Last Edit: January 15, 2012, 12:49:12 pm by ChunkyMonkey »



coleislazy

  • *
  • Posts: 2607
You may need to post your entire game for someone to take a look at. I can probably look at it tomorrow. If you don't want it on the forum, upload it somewhere and PM me a link.

ChunkyMonkey

  • Posts: 430
You may need to post your entire game for someone to take a look at. I can probably look at it tomorrow. If you don't want it on the forum, upload it somewhere and PM me a link.
How about I upload it to stencylforge and pm you the name? (just seems simpler)

coleislazy

  • *
  • Posts: 2607
That will work. I'll check tomorrow. Make sure its made public, though. I don't think I can see private resources. I'll let you know once I get it so you can take it down.

coleislazy

  • *
  • Posts: 2607
I got your game, but I don't see the problem. It works fine for me. Pressing up after moving left or right makes him shoot off the screen, though.

Stencyl Ninja

  • Posts: 245
Hey ChunkyMonkey, Is that the game I made the spritesheet for?
The bird with broken wing? or Is it something else?

How's it going? Making good progress?

ChunkyMonkey

  • Posts: 430
Hey ChunkyMonkey, Is that the game I made the spritesheet for?
The bird with broken wing? or Is it something else?

How's it going? Making good progress?
    Yes it is, finally getting around to making it, but I've come along to this problem(the one I made this topic asking about) so early in the game making but I don't know how to fix it. I guess I'll just remake this behavior.

    I'm planning on twenty levels and a "Survival mode"; a iCopter-like minigame. The bird with the broken wing that you see in the screenshots will be in survival mode and your sprites will be in the 20 levels. Sound good?

« Last Edit: January 19, 2012, 05:51:26 pm by ChunkyMonkey »

Stencyl Ninja

  • Posts: 245
However you want to do it.
That bird is a totally different style than what I made you though.

I'm a little confused on this jetpack engine of yours.
I dled it off of Forge and it just goes left and right?
And when I hit the up key, it speeds off in the direction i'm facing?
I don't see many tiles or background but what's there doesn't vanish for me.

I'd say that it might be faster and easier to just re-make it from scratch or
start with something simple that is already made and alter it or just
negate gravity's effects with an opposite pull and then add in a floaty jetpack
effect. But to me it almost seems like a high-speed warpdrive thing that
you're trying to pull off in what you have so far ... if that's the case, how
do I aim it's direction and how is it even possible to use such a thing in
game other than entering and exiting the level? .. You'll need to slow it down
a bit or have a zoomed out smaller graphics more area seen sorta view, and
even then it'll still be hard to control going that fast.

I'm not so good at altering others code cause I tend to do things the simplest or
most complex ridiculous way and not much in between, so I don't quite understand
the middle ground. You should see the convoluted 2.5d mess of an engine I made in
the games factory 1, lol, it compared so many things that I just gave up working
with it. I had jumping off walls in a 2.5d environs where you could walk behind the
platforms or in front and wall jumping on the front of walls too, lol. Alot of technical
trial and error that noone appreciated at all except for me cause it taught me alot.

Point is, I'll look over the code but doubt I can help with it.
I could attempt to make the engine for you if you like though,
but attempt may be all it amounts to as I'm still unfamiliar with most of Stencyl.
I only just now today realised that why I couldn't get my collisions to work
was because they had to be placed under the when this actor collides with something
and couldn't be placed under always or any of the other blocks.

ChunkyMonkey

  • Posts: 430
However you want to do it.
That bird is a totally different style than what I made you though.

I'm a little confused on this jetpack engine of yours.
I dled it off of Forge and it just goes left and right?
And when I hit the up key, it speeds off in the direction i'm facing?
I don't see many tiles or background but what's there doesn't vanish for me.

I'd say that it might be faster and easier to just re-make it from scratch or
start with something simple that is already made and alter it or just
negate gravity's effects with an opposite pull and then add in a floaty jetpack
effect. But to me it almost seems like a high-speed warpdrive thing that
you're trying to pull off in what you have so far ... if that's the case, how
do I aim it's direction and how is it even possible to use such a thing in
game other than entering and exiting the level? .. You'll need to slow it down
a bit or have a zoomed out smaller graphics more area seen sorta view, and
even then it'll still be hard to control going that fast.

I'm not so good at altering others code cause I tend to do things the simplest or
most complex ridiculous way and not much in between, so I don't quite understand
the middle ground. You should see the convoluted 2.5d mess of an engine I made in
the games factory 1, lol, it compared so many things that I just gave up working
with it. I had jumping off walls in a 2.5d environs where you could walk behind the
platforms or in front and wall jumping on the front of walls too, lol. Alot of technical
trial and error that noone appreciated at all except for me cause it taught me alot.

Point is, I'll look over the code but doubt I can help with it.
I could attempt to make the engine for you if you like though,
but attempt may be all it amounts to as I'm still unfamiliar with most of Stencyl.
I only just now today realised that why I couldn't get my collisions to work
was because they had to be placed under the when this actor collides with something
and couldn't be placed under always or any of the other blocks.
    I have literally just got around to start making it, because I tried to make a game for the game jam. It's not meant to be as fast as it is, but that was only my second try. It's supposed to be a regular jetpack-game engine.
    And don't worry, I think I can get a background. Here I am caught 5 days in the game making process.
    Not necessarily good, but it'll get there.