Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Old
Kaze_Senshi
Guest
 
Status:
Posts: n/a
Default 07-30-2009, 01:38 AM

Wow that worked , thanks man, do u have any idea to make the hampster stop when collide? =x I tried some move backward but doesn't worked =(
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-30-2009, 01:47 AM

I have a few ideas, but I have only thought about them, never tested them. Why don't you try out some ideas of your own while I test mine and I'll tell you what I find.

I do know that there's one I can show you now, just wait a few minutes and I'll add it to your world, ok?

By the way, what language do Brazilians speak? Is it portugese?


(')>

Last edited by x2495iiii; 07-30-2009 at 01:59 AM.
   
Reply With Quote
Old
Kaze_Senshi
Guest
 
Status:
Posts: n/a
Default 07-30-2009, 01:49 AM

We speak the brazilian portuguese, it's a bit different from the one of the Portugal, now i am trying to compound the hampster's moviment, using functions to move it 1 meter when UP is pressed and others functions to rotate it, lets see if it works.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-30-2009, 01:58 AM

I have it. It only works for the upright cylinders, and it is a very simple, very rudimentary method, so if the control scheme were more complex (like including diagonal directions) it wouldn't work right.


(')>

Last edited by x2495iiii; 08-04-2009 at 02:56 AM.
   
Reply With Quote
Old
Kaze_Senshi
Guest
 
Status:
Posts: n/a
Default 07-30-2009, 02:09 AM

Well it works, but the hampster didn't even collide with the cylindre, and i tried to put a cube and it didn't worked too, weird
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-30-2009, 02:11 AM

There aren't any Portugese classes at my school, but I wanted to try this anyway. Tell me if this makes sense:

It's difficult to write a collision detection method.

√Č dif√*cil escrever um m√©todo de detec√ß√£o de colis√£o.


(')>
   
Reply With Quote
Old
Kaze_Senshi
Guest
 
Status:
Posts: n/a
Default 07-30-2009, 02:13 AM

Wow it's right, where did u learn it?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-30-2009, 02:14 AM

I know, I'm not sure why it only works with some objects, but my guess is their different center points mean they must be placed differently for Alice to register the hampster's collisions. I can try to move the ibjects around and see if that helps, and if it doesn't, I'll have to make some changes to the collision detector. Like I said, it's difficult.


(')>
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-30-2009, 02:15 AM

Where did I learn it? I'll keep that to myself....hehehe.

What about you though? Do you take English classes?


(')>
   
Reply With Quote
Old
Kaze_Senshi
Guest
 
Status:
Posts: n/a
Default 07-30-2009, 02:18 AM

DUh Well i want to do a little square labyrinth where the hampster gets some itens and add it value on one array, i am doing it to help some students to understand the loop functions and the arrays. So the collision doesn't need to be something complex
   
Reply With Quote
Reply

Tags
group grouping objects

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.