Flanagan - Pi± 23 Lip, 2010 10:41 Temat postu: PojazdyWitam robiÄ™ pewien projekt ale...
Mam problem, mianowicie jak zrobić samochód tak żeby jeździł po ulicy ??
Za wytÅ‚umaczenie nagrodzÄ™ pomógÅ‚Agumon - Pi± 23 Lip, 2010 17:36 ÅšciÄ…gasz chara samochodu nastÄ™pnie ustawiasz zdarzenie z charem samochodu ruszaj zdarzeniem. To zdarzenie i wybierasz ruch. NastÄ™pnie dajesz że to ma być równolegÅ‚e zdarzenie i samochód powinien sam jeździć tak jak mu wyznaczyÅ‚eÅ›.Asantos - Pi± 23 Lip, 2010 18:19 Tyle, że samochód bÄ™dzie jeździÅ‚ tylko tak jak mu to zaprogramujesz, np. w kółko albo po okreÅ›lonej drodze. Najlepiej zrób tak żeby wracaÅ‚ do punktu wyjÅ›cia i zaznacz opcjÄ™ "powtarzaj akcjÄ™".Flanagan - Pi± 23 Lip, 2010 19:22 Ale mi chodzi o to żeby go ustawić jako pojazd jak np. łódka, statek czy sterowiec ale żeby jeździÅ‚ po drodze a nie pÅ‚ywaÅ‚ albo lewitowaÅ‚Asantos - Pi± 23 Lip, 2010 19:39 Możesz spróbować zmodyfikować skrypt Ayene "Zdarzenia chodzÄ…ce po wodzie". JeÅ›li znasz chociaż trochÄ™ RGSS2 to zmodyfikuj rybÄ™ na samochód.Agumon - Sob 24 Lip, 2010 14:35
Cytat:
Ale mi chodzi o to żeby go ustawić jako pojazd jak np. łódka, statek czy sterowiec ale żeby jeździł po drodze a nie pływał albo lewitował
Aha czyli tobie chodzi o zrobieni nowego pojazdu Samochodu. Tak??Flanagan - Sob 24 Lip, 2010 14:48 Tak wÅ‚aÅ›nie, wreszcie ktoÅ› zrozumiaÅ‚!!!!!Killerczyc - Pi± 06 Sie, 2010 13:06 Hej, ja też gÅ‚owie siÄ™ nad tym tematem
Założyłem nowy temat może dziś ktoś odpiszę...
[ Dodano: PiÄ… 06 Sie, 2010 22:41 ]
Hej, songoxyz mam to czego chciałeś proszę:
http://www.ultimateam.pl/...0ac560b5a#36179
^To link do tematu w którym jest skrypt o którego mniej więcej ci chodzi...
Może dasz pomógł...
A i skrypt podmienia łódke na pojazd londowy....Amelanduil - Sob 07 Sie, 2010 16:03 Źle wkleiłeś link :P masz skrypt z tego tematu
module Vehicle_MakeOver
Boat_to_Land = true #Change the boat to a landvehicle. [true/false]
module Boat #Settings for the boat (or landvehicle if Boat_to_Land = true).
Speed = 4 #Use any number, including decimal numbers! [positve number]
GraphicName = "Vehicle" #Save the file in the Character folder. ["name"]
GraphicIndex = 0 #The index goes 0-7, topleft-bottomright. [number: 0-7]
end
module Ship #Settings for the ship.
Speed = 5 #Use any number, including decimal numbers! [positve number]
GraphicName = "Vehicle" #Save the file in the Character folder. ["name"]
GraphicIndex = 1 #The index goes 0-7, topleft-bottomright. [number: 0-7]
end
module Airship #Settings for the airship.
Speed = 6 #Use any number, including decimal numbers! [positve number]
GraphicName = "Vehicle" #Save the file in the Character folder. ["name"]
GraphicIndex = 3 #The index goes 0-7, topleft-bottomright. [number: 0-7]
end
end
################################################################################
################################################################################
# WARNING!! #
# Don�t touch below if you don�t know what you are doing!! #
################################################################################
################################################################################
class Game_Vehicle < Game_Character
alias refreshing refresh
alias get_on_with_it get_on
alias get_off_with_it get_off
def refresh
refreshing
case @type
when 0; @move_speed = Vehicle_MakeOver::Boat::Speed
when 1; @move_speed = Vehicle_MakeOver::Ship::Speed
when 2; @move_speed = Vehicle_MakeOver::Airship::Speed
end
end
def get_on
get_on_with_it
case @type
when 0
@character_name = Vehicle_MakeOver::Boat::GraphicName
@character_index = Vehicle_MakeOver::Boat::GraphicIndex
when 1
@character_name = Vehicle_MakeOver::Ship::GraphicName
@character_index = Vehicle_MakeOver::Ship::GraphicIndex
when 2
@character_name = Vehicle_MakeOver::Airship::GraphicName
@character_index = Vehicle_MakeOver::Airship::GraphicIndex
end
end
def get_off
get_off_with_it
case @type
when 0
@character_name = $data_system.boat.character_name
@character_index = $data_system.boat.character_index
when 1
@character_name = $data_system.ship.character_name
@character_index = $data_system.ship.character_index
when 2
@character_name = $data_system.airship.character_name
@character_index = $data_system.airship.character_index
end
end
end
################################################################################
if Vehicle_MakeOver::Boat_to_Land
class Game_Map
def boat_passable?(x, y)
return passable?(x, y, 0x01) if !$game_map.airship.pos_nt?(x, y)
end
def airship_land_ok?(x, y)
return passable?(x, y, 0x08) if !$game_map.boat.pos_nt?(x, y)
end
end
end
################################################################################
aha, nie rób oddzielnego tematu jak łódka ci nie będzie pływała po wodzie ten skrypt zamienia ją na pojazd lądowyKillerczyc - Sob 07 Sie, 2010 16:23 Amelanduil napisał:
Kod:
aha, nie rób oddzielnego tematu jak łódka ci nie będzie pływała po wodzie ten skrypt zamienia ją na pojazd lądowy
Hej,nie jestem takim n00b'em...
Choć z tym linkiem to parówiasto wyszło....
:D