![]() |
walking on wall?
is there a script it make you walk on a wall, but not all the walls
like just 1 tile peace? so you can walk on tiles 2,132 3,132 4,132 2,133 3,133 4,133 thanks for your help |
put the values of the tiles you want to be walkable in an array
use board or tiles[] with vexy and vecy to get the tiles in front of the player... and check with in if these tiles are in the array... if they are move the player on it... |
?
what?
i dont under stand vecy/vexy things could you explain? |
um...
it gives u the value you have to add or substract to do movement to one of the 4 specified dirs: dir 0 (up) vecx(0) = 0 vecy(0) = -1 dir 1 (left) vecx(1) =-1 vecy(1) = 0 dir 2 (down) vecx(2)=0 vecy(2)=1 dir 3 (right) vecx(3)=1 vecy(3)=0 so that means if u use playerdir instead of the numbers x=playerx+vecx(playerdir); y=playery+vecy(playerdir); will always give u the tile 1 field in front of the player to get it exactly in the middle front of the player u have to add 1.5 to x and 2 to y: x=playerx+1.5+vecx(playerdir); y=playery+2+vecy(playerdir); |
I am not new at scripting
I just dont know lot about tiles
all i know how to do with them is change them with addtiledef2 img.pmg,level.nw,0,0; |
Kai is right, don't even try this if you don't know a lot about scripting
|
can some just script the script for me then?
i want to be able to walk on these tiles 2,132 3,132 4,132 2,133 3,133 4,133 thanks |
Is there a way you first have to read the guildline before entering the forums??????
|
Quote:
and i never understood the tile scripting either and people consider me to be a l33t scripter. |
I am
a good scripter.....
I just dont get the tile things!!! Some one say this is a place to teach people things.. so could some explain how? some one tryed but all he talked about was vexy and vexy's I dont understand these things!!! But I am NOT a BAD scripter! I have mostly learned scripting from scripts. I download all types of scripts and learn from them.. just to let you know |
Quote:
|
Re: I am
Quote:
|
-=Josey=-
Quote:
|
this
is the ONLY thing i dont know
i know everything else |
In your walking script (yes you must make your own), istead of using onwall(x,y) use a for loop to go through all the different tiles in the array, just set flag or something if the current tile is equal to one in the array, and use that to show for onwall.
|
Quote:
there is a small word called IN example: NPC Code: |
Re: Re: I am
Quote:
|
Re: Re: Re: I am
-=Josey=-
Quote:
\/ playerhere /\ But, it went a little outside of the player. ;D I was quite proud of it for sometime. |
Re: Re: Re: Re: I am
Quote:
|
-=Josey=-
Well, not that high, lol. Say you're only capable of making an NPC weapon that layed a bomb, set your goal to make it lay all around the player in a circling motion. Stuff like that. Not just opening the Graal editor for the first time and say, "o liek ima script an npc dat makes it so u can climb on certain walls only", lol. |
Re: Re: Re: Re: Re: I am
-=Josey=-
Quote:
|
Re: Re: Re: Re: Re: Re: I am
Quote:
but its a pain going back and forth using alt-tab to answers RC PM's/AIM messages and stuff like that |
Quote:
|
Kaimetsu I think he just asked if there
is some easy way to do it, like you can call replaceani to change the default animations. I guess the 'easiest' way to do things like that is to take an npc which has the same gfx like the wall, and make it dontblock & drawunderplayer. Another way would be to use addtiledef2 to add new tiles (which look like the wall tiles) ontop of some non-blocking tiles in pics1.png and then use those tiles instead of the normal wall tiles. It will look like normal wall but will be non-blocking. If you want to make the wall tiles non-blocking for all levels you have without editing them, then you need to script your own player movement or ask someone else for it. Some months ago I have posted one on the 'new races' forum. |
Quote:
Quote:
|
Quote:
|
that is want i want!!!!
I do need help --but all people do is help me using scripting talk
but i dont get that type such as vexy and vecy's or Arrys could some one also give Examples with your help thanks p.s. the reason I ask for YOUR scripts sometimes is because I like to learn from them.... it is easyer for me that way.... but if you will got give them to me, will you PLEASE help me |
| All times are GMT +2. The time now is 08:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.