![]() |
scaling characters
does anyone know how I can scale a character as they move up or down the screen?? thanks.
|
a character as in a player or a letter?
|
the actual character, so when someone pushes the UP directional button to move up, the character is scaled down (to simulate that the character is farther away) and when the player pushes the DOWN directional button to move down the screen, the character is scaled up (to similate that the character is closer)
|
Something says maybe you should learn to script first? I'm just going on assumation here, you may be able to script, you may not. I'm just making an assumption based on how you presented the question.
But to the point... If you have some scripting experience, try searching the wiki or skyld's wiki as well for some information on zooming. As I believe there ARE some functions that allow you to do this. |
Stan you can't really script either yet you have this whole attitude thing.
TGaniObject.zoom Players and NPCs are TGaniObjects so they should have the zoom variable available on clientside. Just get some script to change this variable. |
I wasn't trying to come off as having an attitude, if it sounded that way I didn't mean it. Because this person didn't ask for someone to script for him, he didn't post a script saying, "zomgfgd fix 4 me plz" he asked a logical question if anyone knew.
So I state maybe he should learn how to script first, wasn't attempting to claim superiority or arrogance here either, however, I then stated I was making an assumption and that I could or could not be wrong. Then I suggested if he DID have some scripting experience to try and search the wiki for a solution as it often answers a lot of questions. I can pretty much understand why you think I have an attitude most of the time, due to me freaking out when someone is posting something and just asks for answers or is posting in Gs1 and I don't mean to do that. I'm very impatient and I shouldn't do that. So, CherryKao I hope you didn't take offense to that as I didn't mean any. So yeah I've been a bit of an ******* lately, so pretty much sorry guys. :( |
There is a player.zoom variable available for use clientside. When using this, only the player will see the changes so you'll have to make a system to show correct zoom sizes for all players clientside.
|
Quote:
or just make a gani script that adjusts your zoom on a timeout, using an attr for zoom. that way everyone will see your zoom... ps: player.attr[x] = "whatever.gani"; will attach a script to you :) |
hey thanks Kristi. with that being my first post in the graal community, i didn't realize people were so rude. i didn't find the "npcprogramming.doc" in my graal folder complete or very helpful. i am a pretty good C++ programmer and a Java programmer, but new to Graal scripting. i'll look into the Wiki site and i'll definately look into the gani script.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
You'll want to make a gani script, and use params or attrs so it shows the zoom for everybody. To make a gani script, edit the gani file in a text editor, and at the bottom (or so) add PHP Code:
PHP Code:
|
Quote:
and thats not true. params are passed to the onPlayerEnters function so if you do like setani("whatever",param,param,param); the function onPlayerEnters(somename,somename2,etc) in the gani will recieve those parameters. |
| All times are GMT +2. The time now is 04:28 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.