Alice Community  

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

Reply
 
Thread Tools Display Modes
chutes and ladders ?
Old
john316
Junior Member
 
Status: Offline
Posts: 10
Join Date: Apr 2015
Angry chutes and ladders ? - 05-12-2015, 02:46 PM

x
Attached Files
File Type: a2w test.a2w (10.82 MB, 4 views)

Last edited by john316; 05-18-2015 at 01:43 PM.
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default 05-12-2015, 08:37 PM

World is not rendering for me...

Edit: Alice was not able to load your custom texture for the world.

Could you post a screenshot of it so i can apply is manually?

Also john, no one on here is looking for money, we are here to help people learn Alice and what awesome stuff it can do.


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game

Last edited by RavenOfCode; 05-12-2015 at 08:50 PM.
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default 05-13-2015, 05:41 AM

Quote:
Originally Posted by john316 View Post
Attached is the file I used as a texture map on a billboard. The (spinner) project might look familiar. Are the methods and the objects showing ?
Once I took off the texture everything looked fine... I will see if I can do this tonight after school.


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default 05-13-2015, 09:42 PM

As your world was very filled with code that was virtually useless to me, i decided to make a new world. (ie. your code would not work)

Here is the basic concepts to a working chutes/ladders type game.

I have only implmented this basics (ie. 1 ladder and movement of characters)

But the rest should be very easy to do but will take some time.

If you have questions feel free to ask.

Hope this helps you,
RavenOfCode
Attached Files
File Type: a2w Chutes and Ladders.a2w (1.34 MB, 3 views)


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game

Last edited by RavenOfCode; 05-14-2015 at 05:14 AM.
   
Reply With Quote
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 05-13-2015, 10:13 PM

Your project sounds rather ambitious, but I'm pretty sure that you'd be the first person to make a board game on alice since I've been here. Good luck!


My avatar is from the anime "Hyouka".......

You've probably never seen it, much less heard of it.....

You should watch it........


print("Hello World")
This is python code.

Lakers > Clippers
Vikings > Packers
Cardinals > Brewers/Pirates/Cubs/Reds
   
Reply With Quote
Sure I can't pay you?
Old
john316
Junior Member
 
Status: Offline
Posts: 10
Join Date: Apr 2015
Default Sure I can't pay you? - 05-14-2015, 09:39 AM

1. I want to say that you've saved my life.
2. You said '' But the rest should be very easy to do but will take some time.'' Trust me no I'm an idiot.

What I've done so far
1.Created corner Squares and used the same code that you implemented, but I'm having issues with that characters. They're still going off the board. The method has been called (EndAlwaysEvent#)

2. I have created chutes/ladders methods for both characters, however when the player is within the certain distance the method does not follow through for (player 2) in some cases player1 (tortoise). I looked through and I don't see a mistake. In some cases the corner square methods don't register.

When the world is opened you will see new squares. (They're in groups)
Square color key
Yellow=square 100
White=corner
Purple=Chutes
Green=Ladders
Cyan= curves in chutes.

I'm sorry for being annoying


Quote:
Originally Posted by RavenOfCode View Post
As your world was very filled with code that was virtually useless to me, i decided to make a new world. (ie. your code would not work)

Here is the basic concepts to a working chutes/ladders type game.

I have only implmented this basics (ie. 1 ladder and movement of characters)

But the rest should be very easy to do but will take some time.

If you have questions feel free to ask.

Hope this helps you,
RavenOfCode
Attached Files
File Type: a2w Redone.a2w (2.63 MB, 2 views)
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 05-14-2015, 01:32 PM

Quote:
Originally Posted by john316 View Post
1. I want to say that you've saved my life.
2. You said '' But the rest should be very easy to do but will take some time.'' Trust me no I'm an idiot.

What I've done so far
1.Created corner Squares and used the same code that you implemented, but I'm having issues with that characters. They're still going off the board. The method has been called (EndAlwaysEvent#)

2. I have created chutes/ladders methods for both characters, however when the player is within the certain distance the method does not follow through for (player 2) in some cases player1 (tortoise). I looked through and I don't see a mistake. In some cases the corner square methods don't register.

When the world is opened you will see new squares. (They're in groups)
Square color key
Yellow=square 100
White=corner
Purple=Chutes
Green=Ladders
Cyan= curves in chutes.

I'm sorry for being annoying
Well I for one would accept large sums of untraceable money

You have a couple of problems with you events.
First any event that contains an infinite loop will never finish (unless you have purposely engineered a way around it)
Second, the "When the world starts" event will only happen once, at the start of the movie. Once the method is done it will not be started again through this event.
Three, There is no guarantee which of the "When the world starts" events will be called first, or in what order they will execute.

What I think you are after is something like this:
Event:
While Object is within 1 meter of end10
Before - method to make any preparations for the event
During - method to move the object or whatever.
End - method to perform any cleanup needed.
In a lot of cases you will only need to use the During method and the Begin and End will be blank.

This event will run continuously checking to the while part to see if it is true. If the while part is false it will not do anything except check to see if the while part has changed.
If at some point the object is within 1 meter of the target ( in this case end10) then the methods will be called.
Caveats:
1. Any infinite loop will halt the movie and probably end up crashing Alice.
2. At the end of the "During" method the while condition should, in most cases, be false. Otherwise the event will be triggered again.
3. At any time only one while event should be active (true).

Hope this helps
Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default 05-14-2015, 02:30 PM

Here was the problem
1. The boys methods for 'end' made it move from 10 every time i changed it to for each 'end' not just 10.

2. The boy player was not at the same start position as the tortoise player.

3. The cubes (chutes and ladders) were not on the same line.

What i mean by line is that cubes are not on the same 2d plane (as it is a 2d game) they must be on the same 2d line.

Heres a screenshot of what it looked like:
capture06.jpg

Heres a screenshot of what it looks like after i fixed it:
capture04.jpg


Hope this helps and good job with what you put in.

Test it out a bit more, then you can turn all the cubes invisible (use isShowing not opacity for a better effect) and your good.
Attached Files
File Type: a2w Chutes and Ladders2.a2w (2.54 MB, 1 views)


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game

Last edited by RavenOfCode; 05-14-2015 at 02:37 PM.
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default 05-14-2015, 02:52 PM

Quote:
Originally Posted by john316 View Post
1. I want to say that you've saved my life.

...

I'm sorry for being annoying
Your not being annoying in any way, i enjoy helping people with alice projects, especially if they are willing to do work for their project (which you are).


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Old
john316
Junior Member
 
Status: Offline
Posts: 10
Join Date: Apr 2015
Default 05-14-2015, 03:42 PM

So did you find out what the problem was? I looked carefully at the method and couldn't find anything. I'll reattach just in case.
Attached Files
File Type: a2w Redone.a2w (2.63 MB, 0 views)
   
Reply With Quote
Reply

Tags
chutes and ladders

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