Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
Need some help:)
Old
peter555
Guest
 
Status:
Posts: n/a
Default Need some help:) - 03-21-2010, 09:59 AM

Hi!
This is my first project and I'm not really a computer freak
I've orientated myself at another project.
Could someone help me and build a distance to the trees and say me how I make the snowmobile don't hit the people......
AND its very important that I understand the steps.
So its useful if you keep it in a way superficial.
Sorry for my english but I'm from germany
Attached Files
File Type: a2w dasschneemopil.a2w (11.37 MB, 8 views)
   
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 03-22-2010, 01:28 AM

What you're asking about is called collision detection. It's very difficult to incorporate into a game, but the simplest way to do is

Loop [infinity] times
if [snowmobile] is within [snowmobile's length] of tree (or person, or whatever other object you want)
snowmobile move backwards (some distance) duration 0 seconds

If you need me to translate this into German, I can.


(')>
   
Reply With Quote
Old
peter555
Guest
 
Status:
Posts: n/a
Default 03-22-2010, 11:50 AM

Thanks for your answer, but I don't know what you mean could you explain me the steps? whats "loop"?
   
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 03-22-2010, 03:44 PM

There's a tile at the bottom of the screen that says loop. It should be light blue. Drag it onto the screen and it will make a box and a menu will pop up asking you how many times you want the loop to run. Select infinity (at the bottom, I think), then put your collision code inside the loop.


(')>
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.