Alice Community  

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

Reply
 
Thread Tools Display Modes
Adding tons of text causes lag
Old
cyclonejack
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jul 2014
Default Adding tons of text causes lag - 08-04-2014, 03:46 PM

I have to create a game for an assignment and a feature I added was a "how to play" page with the instructions for the game. I had to create individual lines of 3d text that moved into the screen then moved out of screen to usher in the next line of text. I would've just written all the instructions into one block of text but Alice wouldn't allow for this and would give me error messages. Immediately after the instructions the user enters into a game arena and has the ability to move the camera using the arrow keys. The issue I am experiencing is that when the user moves the camera pass where the text was displayed (the text now at this point has been set to 0% opacity) the program lags and the movement is no longer smooth. Is there a way to have the text removed from the program at this point after the instructions have been called and the player has moved into the game world event to avoid it causing this hiccup?
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 08-06-2014, 06:20 PM

Check out the attachment, I made comments in the method called "First Step". These comments should give you directions on how to recreate the code. If not the code is there for you to look at. All you will have to do to get the effect of moving the text, is just using a simple move function, after the text string changes.

I hope it helps.

Just ask if you have questions. I don't normally get on a lot though.
Attached Files
File Type: a2w Text Help.a2w (169.9 KB, 6 views)


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Another Option
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default Another Option - 08-07-2014, 11:11 AM

Good advice from SFunk, and I've used many times. For large volumes of text the use of billboards is also a handy feature of Alice.
The idea is to create an image with all of the text, and to import it as a Billboard. My modified version of SFunk's post adds an animation of two billboards that I created using Gimp.
Following this process gives you the advantage of learning how to use another product to add new stuff to an Alice World while minimizing coding and memory.

I also added the zipped Gimp project file if you are interested.

Have Fun.
Attached Files
File Type: zip BillboardDemo.zip (75.9 KB, 3 views)
File Type: a2w Scrolling Billboards.a2w (9.51 MB, 11 views)

Last edited by MrMoke; 08-14-2014 at 07:43 PM. Reason: Modified Program
   
Reply With Quote
Old
cyclonejack
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jul 2014
Default 08-08-2014, 12:59 PM

Thank you guys for the advice!
   
Reply With Quote
Reply


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.