Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
chinaman and cowboy.
Old
poodoo
Guest
 
Status:
Posts: n/a
Angry chinaman and cowboy. - 06-22-2008, 02:37 PM

hello th8is is my fisrt post in youre forum. my name is jimmy and i am 10 years old. plz injoy my video about an angry chinese man and a cowboy named roy (roy is my bst friends name.)

this ismy first real amination by the way. i am very proud!
Attached Files
File Type: a2w cowboyandchinaman.a2w (1.30 MB, 218 views)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-22-2008, 03:38 PM

Nice start, especially the camera move towards "The End" at the finish.

Looking forward to seeing more.
   
Reply With Quote
Old
madden
Senior Member
 
madden's Avatar
 
Status: Offline
Posts: 322
Join Date: Mar 2006
Location: My own little world 0.0
Default 06-23-2008, 12:37 PM

LOL "Wawawawgha ... BWAGAWAGAU"
I love that part , Nice job!

P.s I am also looking forward to more!


Check out my new website - http://www.freewebs.com/maddenuser/

Special thanks to the people who are supporting me...
Drjim, rich0e0rick, Chris101b, ZED, jediaction, x2495iiii, ("Robby"), gabe, JustasM, and Shadow Sovereign.


Games...

CSS - a sidescroler/adventure game.
CASE 1.01 - a escape the room/adventure game.
In the Black and White - a shooter/adventure game.
Field Of Wonder - a adventure game
C.R.E.S - a action/adventure game.

Can you eat 10 cookies in 5 seconds?
I did.
   
Reply With Quote
Old
poodoo
Guest
 
Status:
Posts: n/a
Default 06-24-2008, 12:09 PM

i am working on a mor iunteractive program but i need help! i sort of pulled off a sloppy meathod that finds out if the cow is close to the bunny and if so, if you push teh space bar the cow says hello! I am wondering about collisions. my brother says that in order for me to make it so i cannot walk through the bunny i need to some how set it up so that when i am in a certain range of the bunny i cannot wolk in certain places. is there a readme that talks about how to set up colisions? here is my sloppy little program so far.
Attached Files
File Type: a2w cowinteractive.a2w (1.08 MB, 101 views)
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 06-24-2008, 01:06 PM

Quote:
Originally Posted by poodoo View Post
i am working on a mor iunteractive program but i need help! i sort of pulled off a sloppy meathod that finds out if the cow is close to the bunny and if so, if you push teh space bar the cow says hello! I am wondering about collisions. my brother says that in order for me to make it so i cannot walk through the bunny i need to some how set it up so that when i am in a certain range of the bunny i cannot wolk in certain places. is there a readme that talks about how to set up colisions? here is my sloppy little program so far.
Here is my stock answer when someone asks a question about collision detection. Go to Google and search for the following:

collision site:www.alice.org/community

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Old
poodoo
Guest
 
Status:
Posts: n/a
Default 06-24-2008, 02:30 PM

Quote:
Originally Posted by DickBaldwin View Post
Here is my stock answer when someone asks a question about collision detection. Go to Google and search for the following:

collision site:www.alice.org/community

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm
Is it possible to disable an event in the program?
example:
if blah is true and blahblah is false
{event2.disable;} or something like that?
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-24-2008, 07:08 PM

My first suggestion is that you look at a glossary of terms in whatever text or tutorials you are using. Terms like "disable" tend to have special meanings in programming languages - that may or may not resemble their "real world" meanings.

In the case of Alice, you can "disable" an event simply by right clicking on the event and then on disable - but what this does is prevent the event from ever being executed. You have essentially temporarily removed the program line from the program.

If you want something to occur or not occur during execution, you need to set up the conditional statement ("if blah or blah-blah but not yuck") to do what you need to do.
   
Reply With Quote
Old
poodoo
Guest
 
Status:
Posts: n/a
Default 06-24-2008, 07:42 PM

I meant exactly what I said, sorry for the confusion. I want to temporarily disable the keyboard events with an if statment. My little brother showed me alice and I wanted to check out what I can do with it.

Anyway this probably belongs in the code help or whatever section but here is the scenario:

On Program start the arrow keys control the cow's movement. When I reach the a particular location (near the bunny) I want the keyboard event to be disabled and then a function with an animation sequence will start. At the end of the animation I want to reenable the keyboard event that allows movement.

Basically, what I'm asking is if I can disable the keyboard event in code rather than by clicking disable in the menu before running the program. Thanks for the help.

Last edited by poodoo; 06-24-2008 at 07:48 PM.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-25-2008, 07:17 AM

The answer (as far as I know) is that there is no way to disable the keyboard (or any other) event. The test is always evaluated when the key is hit (or the other event trigger occurs).

However, if the test, when evaluated, doesn't actually trigger any other activity - something you can set up conditional statements to do - the resulting behavior is the same as if the event was disabled.

(An easy way to do that is to use a unique Boolean variable that is true only when you want the event to occur and then include that variable as part of the conditional test.)

Last edited by DrJim; 06-25-2008 at 07:19 AM.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 03-26-2011, 06:43 PM

Quote:
Originally Posted by poodoo View Post
hello th8is is my fisrt post in youre forum. my name is jimmy and i am 10 years old. plz injoy my video about an angry chinese man and a cowboy named roy (roy is my bst friends name.)

this ismy first real amination by the way. i am very proud!
Nice! I am 13!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.