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

Pages: 1 2 3
Ask a Question / Re: How to do X, Y and Z only once in a region?
« on: June 03, 2015, 12:20:36 pm »
oh wow. that totally makes sense. will try tonight. thanks!

Ask a Question / How to do X, Y and Z only once in a region?
« on: June 03, 2015, 06:38:44 am »
I'm struggling to figure out how to have my actor do a few things only ONCE while inside a region.  Here's the basic idea ...

When actor enters region
      Set attribute A to True
      Set attribute B to False
      Set x-speed of actor to N

That works as it should when the actor first enters the region ... but when I then try to move that actor outside of the region it's now in ... attribute A gets set to true again, attribute B gets set to false again, and the x-speed changes to N again.  I guess what's happening is that those things continually fire until the actor completely leaves the region.  Actually, it's preventing the actor from being able to leave the region. Hope that makes sense.

How can I have those things happen ONLY the first time the actor enters the region? Then ignore any of those changes while the actor is in the region and only fire again if the actor completely exits the region and then enters again. Sure would be nice to have a block to "disable region while actor is inside". And then "enable when the actor exits".


iPhone / iPad / Android / Re: Clacky Train!
« on: May 26, 2015, 05:32:19 am »

iPhone / iPad / Android / Re: Clacky Train!
« on: May 25, 2015, 12:54:31 pm »
sorry. should've been more clear. i have 4 visible buttons that do certain actions on the bottom half of the screen. i want an invisible "button" or simply the full top half of the screen that can be tapped on an iOS device that does another action.

iPhone / iPad / Android / Re: Clacky Train!
« on: May 25, 2015, 12:21:36 pm »
Nice little app. As a fellow Stencyl-er ... do you mind sharing how you created the "tap anywhere on the screen" feature? I can't figure out the best way to do that. I'd rather not have an invisible actor that covers all or part of the screen. Even if I did that, I don't see a way to scale the actor to always fill up the screen. Seems like a simple set of code should be able to do that for me (without actors). For example I want the top half of the screen (no matter what device is being used) to be tappable. ???

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 22, 2015, 02:07:35 pm »
... my solution was to just cut it off once it reached a low enough number and set all those values right to zero.

Hmm. Not sure what you mean ... but it sounds like you did exactly what I did in the screenshot I posted earlier. Can you please review that and compare to your code? And even better would be if you could post a screenshot of your code. Please.

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 22, 2015, 08:50:07 am »
Thanks for the ideas, everyone. I'll try them tonight and report back what I find. If the ideas work ... the first round of beer is on me. Just need to find a spot that works for everyone. Hmm. I'm in Nashville TN.

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 22, 2015, 06:10:55 am »
So here's my latest code to stop the ball. Again, it seems to work perfectly when testing in the Flash player ... but NOT when testing on my iOS device (iPhone 6).

I will be forever grateful if someone can figure this out. I feel like I've tried every possible tweak to fix the issue ... but maybe I'm missing something ... or maybe it requires some magic ninja skills that I simply do not have. I'm a UX/UI Designer and Front-end Web Developer. So super hard-core code and logic doesn't jive with my brain.  :D

* FYI ... a friend suggested that maybe I look into creating my own gravity instead of using the default Stencyl physics. But I haven't researched that yet. And I gotta imagine that would be crazy hard!

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 21, 2015, 08:15:46 am »
Threads merged.

Thanks, Rob!  That was fast!  :)

I realized that after posting. My bad. I just quickly did it in a moment of frustration without thinking through the better approach of continuing my other thread. Is there a way to combine them ... or should I just copy and paste into that thread?

hello. so with the help of a fellow super-talented Stencyl-er, i *thought* we finally squashed a super frustrating physics bug in my game last night. we did TONS of testing via the Flash player and the bug never happened. so it was a happy WIN ... well, until i pushed the game to my iOS device. the bug very quickly happens there. and i'm literally about to punch my computer and/or walk away from Stencyl for good. no joke ... about the leaving Stencyl part. just not worth it with the constant crashes on my Mac, and this stupid bug that seems truly impossible to fix. dangit.

in a nutshell ... my game has the player shooting a ball that lands on slanted and flat tiles and rolls until it comes to a stop. except it doesn't truly come to a stop on iOS ... but it does in the Flash player. why? please please please tell me why. is this a known issue with physics? is it a problem with Stencyl? or iOS?

thanks. sigh.

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 02, 2015, 04:33:11 pm »
That's tough. I feel like I'd be giving away my game idea if I just posted the real file in the forum. But what I can do is create a brand new file that's super generic. Then if I post that and anyone who wants to jump in and look for the best way to handle this issue ... maybe this thread will be useful for others as a teaching tool for building a physics game. It'll take me a bit, but I'll try to post it later tonight or certainly by tomorrow night.

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 02, 2015, 04:13:28 pm »
Right. But that doesn't work. Well, the code in my screenshot works sometimes, and other times the x-speed, y-speed, and turning speed go completely nutso and change crazy fast and never stop. To the point that the game freezes.

Again, that's why I can't help but think there's a bug in Stencyl. Not in my game. Unless someone can build a super simple demo that proves it can be done. Maybe Jon will see this and respond. Jon? Please?

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 02, 2015, 03:53:25 pm »
Thanks, Rob. I really appreciate you responding so quickly.

Here's a screenshot of what we've tried. It has the range you mentioned, yet the problem still happens. BUT ... I'm wondering if trying to set the x-speed, y-speed and turning speed to ZERO like that is the wrong approach. Is there a better way that will truly set the ball to zero for all three?

Ask a Question / Re: How can I TOTALLY stop an actor from moving?
« on: May 02, 2015, 03:32:11 pm »
Thanks to all who've tried to help with this super frustrating bug. I've tried your suggestions and a number of other ways to fix it ... but no love. Think I might punch my monitor.

If I'm being brutally honest ... physics just shouldn't be this hard. Right? Especially with Stencyl being around for so long now. A ball with a round collision shape lands and rolls and eventually comes to a full stop. Done. But that simply isn't possible, I guess. Or am I totally missing something?

Sure wish someone from Stencyl would respond with a simple set of instructions or a tutorial that unlocks the secret to get realistic physics to work. Please. I'm literally stuck and can't move forward with my game until this bug is squashed.

Thanks -- Eric

Pages: 1 2 3