Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - rancidrat

#1
hi there
Im trying to make a function that I can call from a room script to spawn a npc character.
In a script module i have something that looks like this:


int spawnnpc(int npc, int  view, int xpos, int ypos )
{

character[npc].changeview(view);
character[npc].changeroom(player.room, xpos, ypos);
}

Then:

I call this function in the "before fade in" section
It works fine up till the changeroom command; it seems to get stuck there.
Are you not allowed to use that command in a function? It works when I call the changeroom function seperately, which defeats the object of having a spawnnpc function.
#2
640 x 480 16bit
Not really an Adventure Game but very addictive.
Nova Trade is a futuristic commodity trading game. You are put in charge of a Trading station that floats around in space. The aim is to make money and keep your popularity up. The higher your popularity the more customers you have and the more money you make. You have to buy stock from one of the dealers or from the black market and then trade with your customers. You will also be able to add a food court to your station where aliens can come and spend their money. There is also the constant threat of giant space pirates that want to destroy the station and it is your job to take them out. - There is a lot more to it but it is still in production.


- graphics 45%
- scripting 65%
- music/sound 50%

Screen Shots:


The Station, the little space ships land on the station's parking bay when you have a customer.

the food court... it is far from complete, the more customers you have , the more aliens will be in the room

the "Dealers" and "Customers" windows.. this is where you buy stock and sell it to the customers.

giant space pirate, you will have a number of ways to defend the station agains it.

There is a cool Scroling Starfield background that you cant see on the screenshots.
Still a lot of work to do on the graphics. And the gui will look a bit different when it is done.
Some better screen shots comming later.
Thanx Akatosh :)
#3
Lo
I am a bit of a newbie at this...
I recently discovered how to use structs and I think they are the coolest things since sliced bread. The problem is that I cant figure out how to export and import them cuz the manual only deals with importing a single variable.
Say I did this in the Global script or i a Module:

struct product {
  int price;
  int sellprice;
}

product beer;
beer.price = 40
beer.sellprice = 60

1. How do I export it?
export beer;  ?

2.Now if I want to access this from any script how do I import it cuz..
import int beer;  - does not work
import int beer.price; - does not work

I would like to be able do do something like this in any room script:

Display(" We are trading Beer for %d credits and you can sell it for %d 
               credits",beer.price, beer.sellprice);
Thanks

#4
Hi
I am currently working on a game where the player will have guns and be able to shoot at oponents. My battle system works great, I use objects for bullets:
The objects move to from the player to the mouse curser:

if (mouse click thing)
{
object[0].setposition(player.x,player.y);
object[0].move(mouse.x,mouse.y,......);
}

it works great but the problem I have is that in a scrolling room the mouse coordinates only stays in the 320 x 240 section of my room, so if the character is outside of this area the objects move back to that section of the room.
Is thier anyway to make the objects move to the cursor if the cursor is outside of the 320 x 240 screen coords?
#5
HI
I am working on a death match arena style game where you fight against enemys with a number of different guns and items from your inventory.
Everything works perfectly and im later gonna turn it into a whole adventure game.

I am currently using objects as the bullets/rockets, this works nicely with a
object.move(player.x, player.y+100, 15, noeblock) kinda thing
The problem is that this limits me to only 1 bullet at a time since the object gets reused everytime the player shoots.

My question:
Is there a way to do the same thing with maybe dynamic sprites or overlays?
I cant find any way to move the sprites across the screen once I draw them.
And..
If this is possible, how would I apply it to the
(AreThingsOverlapping(1004, cEnemy) line for collisions? (since it only works for characters and objects)
Thanks
#6
Hi
I am working on a game that only works with the keybored, so i am going to disable the mouse completely. I was wondering if there is a way that I could control dialog options with the keybored for example if you want to choose dialog option1 you can press 1 or maybe even have it scroll between options when you press the arrow keys. Is this at all possible and how would I do it?
Do i need a plugin for it?
SMF spam blocked by CleanTalk