Search found 26 matches

by laurabar55
Thu Apr 10, 2014 5:51 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

if intersect(image "maze", image "p2", "opaque pixels") then repeat until not intersect(image "maze", image "p2", "opaque pixels") add 1 to tMove until tMove = +5 set the top of group "pie" to the top of group "pie" - tMove end repeat end if then I tried this if intersect(image "maze", image "p2", "...
by laurabar55
Thu Apr 10, 2014 12:51 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Hi Simon, so I fully get that you don't want to give me all the answers. but can you give me more of a hint on how to do the x and y so that it doesn't go through the walls. I know that thing I sent you doesn't work because I tested that, and i have tried a few other things with no luck. thanks, Laura
by laurabar55
Wed Apr 09, 2014 7:41 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

I know this is probably wrong, but would I do that like this? if intersect(image "maze", image "p1", "opaque pixels") then repeat until not intersect(image "maze", image "p1", "opaque pixels") add 1 to tMove pXAccel +5 set the right of group "pie" to the right of group "pie" - tMove end repeat end if
by laurabar55
Wed Apr 09, 2014 7:13 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

It work pretty good, but if it touches the wall for two long the marble jumps to a random location.
by laurabar55
Wed Apr 09, 2014 6:40 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

That line means that it is to repeat moving the marble to the left until the marble no longer intersects with the maze walls. That way if it keeps moving to the left it will not go through the wall.

is that the correct answer
by laurabar55
Wed Apr 09, 2014 6:22 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

nope that doesn't work at all.
by laurabar55
Wed Apr 09, 2014 6:13 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

I tend to complicate things ... and make it harder than it actually is. Lol

Is this what you mean then?

if intersect(image "maze", image "p2", "opaque pixels") then
set the left of group "pie" to the left of group "pie" tMove
end if
by laurabar55
Wed Apr 09, 2014 6:01 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

No, that doesn't work either. it still locked up.
by laurabar55
Wed Apr 09, 2014 5:58 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Hi, so I got rid of the intersect part and just had the repeat code in there, but it got all locked up. should I do something like this then, or are you telling me to get ride of the intersect idea all together? if intersect(image "maze", image "p3", "opaque pixels") then set the left of group "pie"...
by laurabar55
Wed Apr 09, 2014 5:14 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Hi, I appreciate your little bit of help, and I understand why you don't want to just tell me everything. My teacher and I have been working on trying to get the walls to work, and we haven't had much success yet. This is what I tried so far, It works a bit, but its really glitchy. I just scripted i...
by laurabar55
Wed Apr 09, 2014 12:21 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

hi, would someone please help me figure out how to script for an object on a mobile device to not go through the walls of a maze? my object is called image "marble" and my walls are called image "maze" I can get it to do something on intersection. Like set the marble back to the original location, o...
by laurabar55
Mon Mar 31, 2014 5:13 pm
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Well, I made that change because you told me to, not because I spotted it. So thanks for letting me know to fix that.
by laurabar55
Mon Mar 31, 2014 3:59 pm
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Hi,
Thanks, I made that change already. I tried a few things for intersection with the walls, but haven't had any luck yet.

Laura
by laurabar55
Mon Mar 31, 2014 5:00 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Hi,
Thanks for letting me know the updated code :)

and for helping me with this so much.
by laurabar55
Mon Mar 31, 2014 4:32 am
Forum: Games
Topic: Mobile Maze Application for on Android devices
Replies: 42
Views: 29180

Re: Mobile Maze Application for on Android devices

Oh my gosh, thank you so much. my marble floats all over now :) and LOL, I was very confused. my next question is, what do I do to make it so that it doesn't go through the maze walls? this is the scripting that I have for on a desktop maze app. would it be similar to this? on arrowKey theKey if int...