Спойлер И как тебе не стыдно-то, а, Валера?:
Оборона форта: http://rghost.ru/8kLGxFtD2
Сделать, чтоб все происходило, как я хочу, - вот, собственно, и весь мейкер!
Адский Рейд: http://rpgmaker.su/vbdownloads.php?d...downloadid=106
Здесь должна была быть какая-то умная фраза.
Я пишу длинные тексты, чтобы подольше собой повосхищаться.
Бывает, иногда требую чай.
Тогда слушай внимательно:
Game_Screen
После строчки:
@pictures = [nil]
Добавляем:
@pictures_2 = [nil]
После строчки:
@pictures.push(Game_Picture.new(i))
Добавляем:
@pictures_2.push(Game_Picture.new(i))
После строчки:
@pictures[i].update
Добавляем:
@pictures_2[i].update
Спойлер Game_Screen:
Spriteset_Map
После строчки:
@viewport3 = Viewport.new(0, 0, 640, 480)
Добавляем:
@viewport4 = Viewport.new(0, 0, 640, 480)
После строчки:
@viewport3.z = 5000
Добавляем:
@viewport4.z = -100
После строчек:
for i in 1..50
@picture_sprites.push(Sprite_Picture.new(@viewport 2, $game_screen.pictures[i]))
end
Добавляем:
for i in 1..50 # Add SpBT
@picture_sprites.push(Sprite_Picture.new(@viewport 4, $game_screen.pictures_2[i]))
end
После строчки:
@viewport3.dispose
Добавляем:
@viewport4.dispose
После строчки:
@viewport3.update
Добавляем:
@viewport4.update
Спойлер Spriteset_Map:
Под сплоерами весь текст, там где в комментариях стоит # Add SpBT - это и есть мною вышеописанные изменения!
Благодаря этим манипуляциям мы создали 2-ю функцию для вывода картинок но, картинки будут лежать под героями! Обычными средствами её вызвать не получится, поэтому когда необходимо в эвенте пишешь следующую команду:
$game_screen.pictures_2[n].show('name', 0, x, y, zoom_x, zoom_y, 255, 0)
n - номер картинки не долже превышать 50-ти и не должен пересекаться с номером картинки выведенной обычным способом!
'name' - имя файла в папке Picture
0 - забыл
x, y - координата верхней левой точки картинки в пикселях
zoom_x, zoom_y - обычно 100 (т.е. 100%, выводит картинку 1 к 1)
255 - прозрачность
0 - непомню :)
Спойлер Творения моих рук:
Ты точно все правильно написал? Дело в том, что у меня выбивает ошибку. Сперва я подумал - ошибся где-то сам, скопировал целым текстом твой код, вставил скрипт в меню вызовом - тоже самое. Ссылается на ошибку в Spriteset_Map.
Кстати, ребята, еще один вопрос. Мне доводилось видеть спрайты с анимацией не на 4 движения, а более. На днях попробовал понять принцип - сделал спрайт на 6 движений в стороны (то есть, 4 ряда по 6 движений), после чего, по экрану стал бегать уже ни один герой, а целых два :-))
В принципе, хотелось бы понять принцип этого безобразия.
Здесь должна была быть какая-то умная фраза.
Я пишу длинные тексты, чтобы подольше собой повосхищаться.
Бывает, иногда требую чай.
Может где-то и ошибаюсь, но метод работоспособен, проверено. Сделай скрин ошибки!
http://rpgmaker.su/showthread.php?t=852 п1.2 может тебе немного понять суть.
Так же ознакомься со 2-ой сылкой 2-го поста и посмотри следующий проект:
http://rpgmaker.su/showthread.php?t=352
Последний раз редактировалось Space; 06.02.2011 в 20:09.
Спойлер Творения моих рук:
Скрипт дополнительных фрэймов в чарсете.Кстати, ребята, еще один вопрос. Мне доводилось видеть спрайты с анимацией не на 4 движения, а более. На днях попробовал понять принцип - сделал спрайт на 6 движений в стороны (то есть, 4 ряда по 6 движений), после чего, по экрану стал бегать уже ни один герой, а целых два :-))
В принципе, хотелось бы понять принцип этого безобразия.
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)
Социальные закладки