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.


Topics - Dr Obvious

Pages: [1]
1
General Discussion / Game Submission - Bob the Unlikely
« on: 2005-12-13, 09:19:16 AM »
Hello all, I've had this ready for a while, just now finally getting around to submitting this  ::)

Anyways, the game is Bob the Unlikely and it's a Guildhall submission.  I (Tommy Westerman) am the lead level designer and the artist is Joowon Kim (who did an incredible job).

A few things about the game:
 -Use a gamepad if at all possible!  The game was designed for using a gamepad and is pretty difficult without one (though completely doable).  My biggest problem when not using one is that I usually accidently hit the windows key and get booted out.
 -The game turned out pretty hard (mainly the 2nd level).  In the second level, try your best to stick to the building tops and make it to the top of the 6th building.
 -You need 50 cents to buy an energy drink

Other than that, I think that's it.  I hope yall have fun with it!  Here's the link:
http://drobvious.net/bob/bob_v1_3.exe

If you want to see more about the game, you can just go to the following link:
http://drobvious.net/bob
It doesn't have the most recent version of the game, but it has the documentation, older version, and hits and tips.

Lastly, if anyone finds any problems with the game, please post them here or email them to me at twesterm@smu.edu and I'll fix them as time permits.  I think I got all the big problems, but knowing my luck, I probably missed a few.  :-\

2
Script / Script Time Out Error
« on: 2005-09-20, 11:55:42 PM »
So I have my game finished and all, but every now and then I get a random error that I cannot reproduce on will: Script timeout error.

It happens at random places in my game and always in places in the script that have nothing to do with where my game crashed.  Any idea what this error is?

3
Help/FAQ / Message Box error
« on: 2005-09-14, 09:23:31 PM »
Whenever I have a message box in my game and I'm pressing more than one button or several direction buttons the game kicks me out with the following errors:

"Overflow" and "Error Playing Map: Display must be open to flip?"

Anyone have any idea why this might be happening?  It only happens when I have message mobes come up and no other time.  It's an easy problem to avoid I suppose if I tell the player to just not run around pressing a lot of button but I'd rather not do that! :p

4
Script / Health Script
« on: 2005-09-11, 12:40:42 AM »
Alright, so I have a script that's calling special functions and the special function is being called just fine (I think), but it's not reading my inventory right.  My health is initially set to 100, but no matter what, it always thinks my health is at 0.   Anyone know hy it's doing this?

Code: [Select]

if func.Name = "H- Check" Then
With ProjectObj.gamePlayer
'>= 80% health
If .InvQuantityOwned(4) > 79 Then
.ActivateFunction .rmap.Specials("H- f80")
'>= 60% health
ElseIf .InvQuantityOwned(4) > 59 Then
.ActivateFunction .rmap.Specials("H- f60")
'>= 40% health
ElseIf .InvQuantityOwned(4) > 39 Then
.ActivateFunction .rmap.Specials("H- f40")
'> 0% health
ElseIf .InvQuantityOwned(4) > 19 Then
.ActivateFunction .rmap.Specials("H- f20")
'Dead
ElseIf .InvQuantityOwned(4) = 0 Then
.ActivateFunction .rmap.Specials("H- f0")
End If
End with
End If


My health inventory item is index 4 and I have it displayed in text on my screen and it does say 100.

-edit-
I've tried setting my health inventory item to various value and it always wants to go to 0 on the if thens.

5
Help/FAQ / Message Box question
« on: 2005-09-08, 10:11:02 AM »
Yes, even more questions.  I just had a real quick question about message boxes, is there a group of flags I can set so I can change the position of it and various other attribultes like how it already has the font size flag #FSZ?

I want to do one of two things with the message boxes and I'm not sure if I can do these:

1.  Move the message box to a certain point on screen and have the characters potrait next to the message box (much like you would see in something like FF Tactics).

or 2. Have a little message box bubble like you would see in comic books appear near the characters head.  The bubble would have to be able to be set relative to the player sprite and set to absolute pixel positions.

6
I have a series of functions that activate other special functions and they check to make sure the player has certain variables in their inventories.  The order goes like this:

L- L Group
  -Uses Inventory Item: Facing Left
  -Global
  -Initial press of button 2
  -Activates Series of special functions
    -L- L Check

L- L Check
  -Uses Inventory Item: Level 3
  -Activates Series of Special Functions
    -...4 functions that don't  really matter right now


The problem is, I can press button 2 when I have the Level 3 inventory item and everything works fine, but  the problem is that when I don't have the Level 3 inventory item, the series of special functions activated by L- L Check is still activated.  How do I make a series of special functions that checks for two inventory items or what am I doing wrong here?


Note:  My first and third level use the same map, just you come to it at different times and have different abilities so that's why I have the Level 3 inventory items and why I don't inclue these functions in the previous levels.

7
Help/FAQ / Map path errors
« on: 2005-08-30, 12:08:34 PM »
First, a bit of history of the major changes I made:
1. Last night I added a sprite that was 256x256 and it seemed to work fine, I didn't have any errors with it.

2. Last night I added various special functions that just worked with variables and some sprite switching

3. This morning I worked with some more special functions involving variables

4. I added a 96x96 sprite and it seemed to work fine.

5. Made some special functions on my collision layer map involving the 96x96 sprite

6. Created a new map in the project and worked in the collision layer in the map

7.  Tried to add a sprite with initial instance to the new map

About the time of #7 is when I started having all the problems.  When I start up the project, I get the following errors: "Error loading map: Path not found" and then I get "Run-time error '91': Object variable or With block variable not set" and then the program exits.  I was able to get into the project earlier and I would try to load some of the tilesets while others I wasn't able to load or even reload.  The first problem I remember having was when making a sprite, I had some problem with a template, got the runtime error '91' and then this all started happening.  I've looked over my current project .gdp and a backup in wordpad and the map files look pretty close except for where I've added variables and tilesets and can't figure out where I went wrong.  I'm using version 1.4.5 (and that's the version I'm required to use unfortunately).

8
Script / A few scripting questions
« on: 2005-08-25, 04:57:25 PM »
Hello, I'm trying to make a game for SGDK but I'm having a few troubles figuring a few things out.  I'm hoping someone can help me with a few scripting problems...

1) Script for collision
I know this is probably something simple, but I can't find how to do collision with scripting.  I want to do my shooting all in scripting because of the way I'm doing damage.

2) Random Damage on collision (for enemy and player)
I want whenever an emeny or player shoots a bullet collides with the other to do some amount of damage plus a random number so that it looks something like:
'On collision
Health = 20 - diff*(rand(-5,5))

Where health is the enemy or players health, diff is the difficulty rating (0.7, 1.0, 1.3) and it adds some random number between -5 and 5.  Is doing something like this possible?

3) Player sprite switching
I tried this earlier so that when the player shoots, the script changes the player sprite for a short amount of time and then back but I couldn't really get it to work.  How do you make a script that changes the player sprite for x time and then back to the original while creating a bullet sprite that moves away from the player in a straight line?


I've tried making my shooting with special functions, but I'm just having a weird problem I can't really figure out and neither can anyone else so I want to try it this way with scripting instead.  Whenever I shoot using the special function, the sprite changes and makes a bullet where I want it to go, just the bullet doesn't really go anywhere.  It has speed, no gravity, follows path relative to player, and path vector, it just sits there for some odd reason.

Thanks for any help you can give!

Pages: [1]