Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 17th Jan 2012 23:40
Hi guys our project is going on very well but now we have some questions.

Q1) We want to simulate the movement of a textline trought a timer.


In a code like that i can obtain the movement i want but i would to delete the previous text and print the new one on the screen to simulate a movemente, but i can't figure which command to use.

Q2)Is it possible to make a text to fade? Or other transiction effect?
Woodman
17
Years of Service
User Offline
Joined: 11th Jun 2009
Location:
Posted: 18th Jan 2012 04:33
To do this, I would just use a sprite. This will also allow you to
fade, resize, etc quite easily. I have modified your code to do this.



What I'm doing here is printing the text to the screen, and then
grabbing it with the GET IMAGE command, then I make it into a
sprite. So basically I am turning the text into an image and
displaying that to the user.

I then make it slowly fade away using the SET SPRITE ALPHA command.
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 18th Jan 2012 11:50
Thank you very much for your post, very useful, but unfortunately when the code reachs that code (properly adapted to my code) everything in the game frezes until the fading/movement process is complete...

How can improve this situation?
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 18th Jan 2012 12:11
...And another thing is that the GET IMACE grab a part of the screen, so if we have a background it grabs also the text and the background. D:

How can solve?
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 18th Jan 2012 13:04 Edited at: 18th Jan 2012 13:06
Quote: "We want to simulate the movement of a textline trought a timer"




Quote: "Is it possible to make a text to fade? Or other transiction effect? "


Woodman
17
Years of Service
User Offline
Joined: 11th Jun 2009
Location:
Posted: 18th Jan 2012 23:13
Well, to solve the first problem, you would need to place everything
in the loop into your main program loop.

A little more info on what you are specifically trying to accoplish would help.
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 19th Jan 2012 11:27
Sure mate.

We want to make a fading text on clickable objects in the game.
This fading text moves a little until it go close to the object (top).

Ex:
Something like: "Oh well that's a box! What can i do with it?" *Mouse over the box*... A fading text came in moving at the top of the object:"Click to open!"

Understood?
For any other details please ask me.
Thanks a lot for your help!

Login to post a reply

Server time is: 2026-07-09 20:55:37
Your offset time is: 2026-07-09 20:55:37