PDA

View Full Version : Pet Simulator


Apocalypse
31 Oct 2006, 12:18
http://members.chello.nl/~k.haagsma/TFrames.htm
Woohoo!
It's finished :P
Go to the website, click on Art, then Comics, the the pet simulator.
Please tell me what you think of it :)

(for those who don't know why the pet is so detailed, I used the sprites of a game, called Maple Story)

History behind the creation:
Well... I wanted to get to know the Lingo Language, so I had to make something with it... the result is here XD

Plasma
31 Oct 2006, 12:21
Well, for a start, some of the sprites dont show for me. There was an error message saying that the Xtras anre not in the Xtras folder.

Apocalypse
31 Oct 2006, 12:39
If you have the problem of the "Red boxes", click here to download the necessary xtra's using "save target as". They need to go into Shockwave/Xtras. After that, you should be able so see the comic without a problem. If the problem keeps occuring, click here for the other version.This is your problem?
If the message sayd the xtra's aren't available, I looked em up on my comp and set them on the site.
Either set can fix the problem. Once downloaded, extract them into the shockwave folder, under xtra's.
Shockwave is in Windows/system32/macromedia, if it isnt there, then use the search tool to find it.

Hope this fixes it..

robowurmz
31 Oct 2006, 17:28
WOOOT! You play Maple! Rock on. What level are you, by the way, and what job, and what name?[/grilling]

I am "Dumpington", and I am a level 20 bowman, and I haven't played for about 6 months, because I got bore waiting to level up.

Pigbuster
1 Nov 2006, 06:12
Apocalypse!
You've been... gone awhile.

Cisken1
1 Nov 2006, 15:01
OMG! aclopapopapapoplyse is back!

Apocalypse
1 Nov 2006, 16:33
U guyls like it? :D

Apocalypse!
You've been... gone awhile.OMG! aclopapopapapoplyse is back!Shhh! XD
Yes, I wondered a bit around this forum..
Even went to.. avatar absurdity :O Poor WormGod... avatar request threads don't go well anymore :rolleyes: WOOOT! You play Maple! Rock on. What level are you, by the way, and what job, and what name?[/grilling]
I am "Dumpington", and I am a level 20 bowman, and I haven't played for about 6 months, because I got bore waiting to level up.IGN: Shikotei
Job: Crusader (Warrior->Fighter)
Lvl: 94
Status: pretty inactive, got overdosis XD

robowurmz
1 Nov 2006, 16:48
Level 94?

*Dies*

Plasma
1 Nov 2006, 17:00
U guyls like it?
As a program just to practice the basics?
Yes.

As a full program intended to be shared with friends?
No.

Apocalypse
1 Nov 2006, 20:27
It is just a proggy to get the basics. Seems I succeeded in my intention :)
The previous knowledge I had was just "how to work with frames"... now I can use a bit of code.

WormOfFire
3 Nov 2006, 21:18
94?

*dies*

MAPLE FTW!

Plasma
4 Nov 2006, 00:04
Am I the only one here that's actually interested in the program itself?

Apocalypse
4 Nov 2006, 10:34
Am I the only one here that's actually interested in the program itself?Seems to be true... but that doesn't bug me.
I posted the program on two forums, this one, and a maplestory fanforum.

The program itself is based on a few frames (to show the movement of the panda) and some code (to get the buttons interactive) and some rules (to make the panda stand up, sit down and chat)

1: The program looks up what button you clicked
2: Make the chat balloon visible and give it a text (picture-based)
3: Give the pet the appropriate animation (gif file made from the sprites found on a different website)
4: Start a timer, so that everything will be back set invisible and back to the "sit" mode of the panda.

If you move the panda, a new set of code (basically the same, but different values) takes over the actions.

When the panda goes to sleep and you press a button you get:
1: The program looks up what button you pressed (sorted in 2 categories, 1 for the movement, 2 for the actions)
2: if category 2 was pressed, go to frame x (make the panda jump off and land)
3: If category 1 was pressed, set the animation (do NOT disturb) to the said anim, then make it visible
4: Start timer, when the timer runs out, set the animation's visibility to false and make it a different picture (so when the animation is back to visible, it will start at frame 1)

The movement of the panda is simply use of frames and animations..

The buttons' rollover code:
Normal: green color
Mouseover: blue color
Mousedown: red color
This is event based.


The "actions" of the panda (right set of buttons) is all done in 1 frame, using the codes.
The difference that I have with the code compared to no code is:
No code: all actions are frames, pressing buttons is 1 frame (with "hold on current frame") The actions are spread over several hundred frames, making it alot of work to complete.
With code: All actions are on 1 frame, using attrbutes like visibility and setting pictures/animations to another one. The actions are limited with a timer, making the "several hundred frames" to a single number: the length of the timer. After the timer has expired, the program is "reset" to standard values (pet sits, chat is off).


Do you understand this? :)


----Edit:-----
Are you a programmer yourself? Since you asked about the proggy's internal stuff...

Xinos
4 Nov 2006, 10:50
Eeek, frames D:

The picture does not load in the big box on the comics page. Simply empty.

Plasma
4 Nov 2006, 13:42
Do you understand this? :)
Yes.
Except for why someone would choose to have no code instead of adding a timer...

Are you a programmer yourself? Since you asked about the proggy's internal stuff...
Yup.
GML and C++.

Apocalypse
8 Nov 2006, 10:28
Except for why someone would choose to have no code instead of adding a timer...I didn't know how to code a timer before, so I had to use the frames. :(
Now I know how to code a timer and how to use one, that's the big difference with my previous skills :)
The picture does not load in the big box on the comics page. Simply empty.Did you choose a comic to watch?