[resolved] Checking target coordinates using variables

Started by darklight, March 09, 2008, 01:04:58 pm

Previous topic - Next topic

darklight

March 09, 2008, 01:04:58 pm Last Edit: March 11, 2008, 09:16:24 pm by darklight
I believe this is how Blizzard did this:
Spoiler: ShowHide


But I'm not 100% sure.  Basically, a picture that "follows" or is always centered on the player.

EDIT:
Blizzard made a dungeon demo which you can check out:
http://www.chaos-project.com/downloads/scripts/Slippy%20Dark.zip

Nortos has a simpler technique which just uses the picture, no eventing:
http://www.sendspace.com/file/yau8o1

But with the variables method, you can center it around any event, such as an NPC:
http://forum.chaos-project.com/index.php?topic=694.msg14172#msg14172

The demo release has been pushed back. In the meantime, you can check out my resources thread.
I'm also working on the project site - stay tuned for a launch very soon!

Blizzard

That's true, I stored the character's variables. What do you think? I can make a you a demo within the next couple of days? It will also feature a slippy floor. :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

darklight

That'd be great! I'm much better at learning something by actually looking at how it's put together than reading instructions. :D

If you wanna throw in any other cool systems/resources in there I'd appreciate it, lol.  ::) I'm looking for dungeon puzzles to use in my own project.

Also, I like this fountain a lot:
Spoiler: ShowHide

The demo release has been pushed back. In the meantime, you can check out my resources thread.
I'm also working on the project site - stay tuned for a launch very soon!

Blizzard

I'll add it to my resources in my photobucket account right away.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

darklight


The demo release has been pushed back. In the meantime, you can check out my resources thread.
I'm also working on the project site - stay tuned for a launch very soon!

Nortos

or you could just have a picture 640 x 480 that has low opacity levels in the centreand have the edges of the map where you can't walk so you're always centred around the player

Blizzard

March 10, 2008, 06:11:06 am #6 Last Edit: January 24, 2009, 07:27:08 am by Blizzard
Actually you need a 1280x960, it won't work with a 640x480. ;) Here's the demo.

Download
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

darklight


The demo release has been pushed back. In the meantime, you can check out my resources thread.
I'm also working on the project site - stay tuned for a launch very soon!


Nortos

wait??? It worked for me O.o I had it just move with the player when I looked at it
EDIT: Here's a demo http://www.sendspace.com/file/yau8o1

Blizzard

What do you think I did? There are 5 commands:

VAR[0002] = Store Player Screen X
VAR[0003] = Store Player Screen Y
VAR[0002] -= 641
VAR[0003] -= 481
Show Picture at [0002], [0003]

::)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Nortos

I prefer my way :P but doesn't work unless the map is centred around the player where as yours would

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Nortos

I just go lazy and make my maps bigger area but that area impassable :P

darklight

But with variables you can make it center around any event, like so:

'The Oracle is high!': ShowHide


The demo release has been pushed back. In the meantime, you can check out my resources thread.
I'm also working on the project site - stay tuned for a launch very soon!

Blizzard

Yeah, you can use smaller pictures like white blending ones to create cool lighting effects.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz


Sally

there talking about diffrent ways to use blizzard's simple but cool system.