Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to place an image behind the lower tile layer.

Status
Not open for further replies.

Inca

Member

Question: Is it possible to make such event on the map that will place an image behind the lower tile layer?

1. If answer="Yes" then can you post such script event here. Also, i need the possibility to place an image in definite coordinates. And the most main thing - when player's character moves, this "backdrop" image must scrolls with others layers and with equal speed. (So, don't advise me to use Panorama feature for this purpose? cause it scrolls differently).

2. If answer="No" then another question comes: can i change something in Script Editor to make the scrolling speed of the Panorama become equal to tile layer's scrolling speed. How much can be the Panorama bitmap?
 

arev

Sponsor

It is possible, but would require a major rewrite of the spriteset_map class. If the second otion would be enough for you, then you can do it simply by going to Spriteset_Map class, finding:
Code:
@panorama.ox = $game_map.display_x / 8
@panorama.oy = $game_map.display_y / 8
and replacig those eights by fours.
 

Inca

Member

I changed 8 to 4 -and nothing happend - Panorama scrolls as usual. Moreover, i changed 4 to 1 and then 1 to 0 - the results was the same thing. I placed an bitmap with map sizes as Panorama image - vainly. :( May be we forget to change something else?

p.s. also i noticed the next thing: my map is 50*30, so i made Panorama image 1600*960 (32*50 and 32*30). But in test Panorama was bigger then the map area. Why?
 

Inca

Member

Ok, thank you very much. I searched (Ctrl+F) through the Script editor and find two same lines: in SDK 2.2 script and in Anti Lag Script. I changed 8 to 4 there and so - Panorama scrolls with the needed speed. Thank you.
 

Mac

Member

This topic has been resolved. If Inca or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top