Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-27-2016, 02:07 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Q: Displaying an image behind tiles

I am trying to simulate a 2D side-scroller with an image displayed in the background that has a static position regardless of movement. I'm wondering if you can have an image draw under tiles, and if so how could this be done? Could I use this in combination with transparent tiles?
__________________
Save Classic!
Reply With Quote
  #2  
Old 08-27-2016, 04:21 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
This is one way of showing an image under tiles and yeah you need transparent tiles or you wont be able to see anything behind them

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (GUIContainer) {
    new 
GuiShowImgCtrl("Test") {
      
useownprofile true;
      
profile.modal false;
      
resize(00screenwidthscreenheight);
      
      
image "block.png";
      
zoom  50;
    }
  }

  
Test.pushtoback();

Reply With Quote
  #3  
Old 08-27-2016, 05:41 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Quote:
Originally Posted by Kirko View Post
This is one way of showing an image under tiles and yeah you need transparent tiles or you wont be able to see anything behind them.
Wow thanks for this.

I wish there were more readily available dev tools. It is very hard to do any dev work without a server like testbed, and there is very little documentation on GS2.
__________________
Save Classic!
Reply With Quote
  #4  
Old 08-28-2016, 11:20 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
You will need to make sure your tiles are on layer 1 instead of layer 0 for this to work, which is the more annoying part of this.
Reply With Quote
  #5  
Old 08-28-2016, 10:08 PM
Elk Elk is offline
Sr Marketing Strategist
Elk's Avatar
Join Date: Nov 2005
Location: Deerland
Posts: 3,829
Elk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant future
Send a message via ICQ to Elk Send a message via AIM to Elk Send a message via MSN to Elk Send a message via Yahoo to Elk
or even higher, if you wish to have multiple image layers behind i think?
__________________
iEra IGN: *Elk (Darkshire)
iCla. IGN: *Elk (Darkshire)
iZone IGN: *Elk (Darkshire)




Reply With Quote
  #6  
Old 08-29-2016, 06:08 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
watchu workin on there bud?
__________________
Reply With Quote
  #7  
Old 08-29-2016, 08:17 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Quote:
Originally Posted by Crono View Post
watchu workin on there bud?
Just trying to get the ball rolling on a few event ideas on Classic. Nothing ground breaking.
__________________
Save Classic!
Reply With Quote
  #8  
Old 08-29-2016, 08:49 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Elk View Post
or even higher, if you wish to have multiple image layers behind i think?
No it doesn't matter, tiles just can't be on layer 0 if you want proper transparency.
Reply With Quote
  #9  
Old 08-29-2016, 09:09 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by maximus_asinus View Post
Just trying to get the ball rolling on a few event ideas on Classic. Nothing ground breaking.
never before seen : - )?
__________________
Reply With Quote
  #10  
Old 08-29-2016, 03:14 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Quote:
Originally Posted by Crono View Post
never before seen : - )?
I'm sure it has been done before. I am posting about it on Classic's official forum. I'll post a screenshot of my mockup when I get home.
__________________
Save Classic!
Reply With Quote
  #11  
Old 08-29-2016, 05:18 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Okay so this is just a mock-up. For now the tiles I'm using are from SMW, and the background is from Tetris Splash (I think). Nothing in this screenshot is indicative of the final product in that regard.

The end result would be an elimination gamemode mash-up of Donkey Kong Country, Pacman, and Mario.

Quote:
Originally Posted by Original Outline
The level would have sort of a gravity, think how most 2D games work in regards to swimming physics. You would navigate left or right with the arrow keys, have to tap A to move up, release A to sink, and S would be a sword attack.

In the middle of the level at a certain interval a crate would spawn, and inside the crate there would be a swordfish that you could ride around on. The controls would change, you would no longer sink, you'd move with the arrows keys (though the movement would be a bit slippery), and S or A would have to do a thrusting attack which would also give you a boost of speed.

The swordfish attack would be stronger than the regular attack. If you're attacked while riding the swordfish, you would be knocked off, allowing the other player the chance of getting on and using the swordfish. Repeatedly attacking the swordfish sans rider will have it dash attack, and eventually swim out of the level.
__________________
Save Classic!

Last edited by maximus_asinus; 08-29-2016 at 05:37 PM..
Reply With Quote
  #12  
Old 08-30-2016, 06:11 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
swim gani cute
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.