Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Click&Play Adventure Game, help me ;)

Author
Message
Mel_o_Die
21
Years of Service
User Offline
Joined: 11th Jun 2004
Location:
Posted: 11th Jun 2004 22:17
Hi!
I want to create a Click&Play Game, like Monkey Island, Discworld and others.

Can I use sprites sequences (like frame 1-15 for a walk cycle in .png with transparency) ?

Is that difficult to code ? (Backdrop, objects, conditions, walk zones, texts, cursors and actions...)

I'm a noob, i only know the basics of Amstrad6128 basic (yes it's very old) and a little Visual Basic, and i know programming logic.

Do you know good tutorials for that ?

Sorry for my english

-Mel_o_Die-

-Mel_o_Die-
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Jun 2004 22:48
Well, it's not difficult to me. I think it's really easy, but I don't know if you will find it easy or not. I suppose that it's easy because nearly all of the commands are zones. Zones are areas on the screen that are like invisible rectangles, they are the doors, the pick up objects, the collision detection, people colliding, all done with zones. The only other thing to learn is the scrolling routine. That's not hard either. I don't know of any tutorials, but a collision zone function is just about 4 lines of code.

Mel_o_Die
21
Years of Service
User Offline
Joined: 11th Jun 2004
Location:
Posted: 11th Jun 2004 23:26
thanks for your answer, i've not yet buy DBpro but i've found the manual and i have started to read it.

So i guess i had to learn zones and sprite animations for player and non players loops, text speed and position.

Is that easy to made a "save/load" option ?

You think Dbpro is good to made that kind of game (no 3d needed i prefer render my models into sprites) i can buy it with closed eyes ?

thanks again

-Mel_o_Die-
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Jun 2004 23:41
Well DBClassic is good for that type of game as well, but DBPro will handle the transparency a bit better. DBPro can easily make this game.

Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 12th Jun 2004 01:44
Although, doing this game in 3D would save you tonns of disc space since you would only have to paint 1 object and animate it, instead of hundreds of images that make up an animation. It also makes the whole collision and perspective thing alot easier than scaling your images.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
Mel_o_Die
21
Years of Service
User Offline
Joined: 11th Jun 2004
Location:
Posted: 12th Jun 2004 08:10
I've read the manual and i guess that's good for sprite animation, tracking mouse, conditions and mathematics, sure with a little practice
but i've found nothing about your "zones" or drawing rectancle
can you give to me, please, the basics of coding "zones" and made them interactive (for objects, doors etc.), walking zones (illusion of perspective and fictive walls (bitmap background) collision and maks (hide parts of characters when they are behind objects, pillars, tables or anything else)
thanks, i hope am not bugging you

---and really sorry for my english again see u !

-Mel_o_Die-
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 12th Jun 2004 14:34
Do
Rem checking mouse click
if mouseclick()=1 then gosub zonecheck
loop


Rem Zones are invisible rectangles that detect an event.
Rem The could be used to pick up objects, or to check whether
Rem a sprite has walked through a doorway.

ZoneCheck:
REM area 0
if zoneclicked(44,18,164,78)=1

endif

REM area 1
if zoneclicked(45,83,164,140)=1 and stage >1

endif

Return

Rem This checks the mouse x/y, but it could be used with a sprite's x/y

function ZoneClicked(X1,Y1,X2,Y2)
J=0:X=mousex():Y=mousey()
if X>=X1 and X<=X2 and Y>=Y1 and Y<=Y2 then J=1
endfunction J

Sprite collision could be used as well. Collision with the mouse cursor is another way to pick up objects, and walk to doorways. Actually that might be better.

Mel_o_Die
21
Years of Service
User Offline
Joined: 11th Jun 2004
Location:
Posted: 13th Jun 2004 15:28
thanks a lot for that code! so cool i'll try it soon.

So i've starter somes tests with sprite, after 4hours of learning code i've done an background image with a sprite who moves on x and y with arrow keys and can't go out of the screen. And with mouse click i can "teleport" this sprite to the click position, so how can i do to made "fly" this sprite to the click position?

thanks

-Mel_o_Die-
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 13th Jun 2004 21:27
You get the position of the mouse x/y when you click it. You also get the position of the player character x/y. You find the smallest x/y and divide the largest x/y by this.

This is my code......It's so old now that it might have some error in it. I was just learning. A pixel fraction, is a number that can be used to slow a walk down. It is less than a pixel, like 0.5, and you just use it like a pixel, but the player doesn't move until it reaches 1. Just keep incrementing the x/y sprite position of the player until he walks over to the right area of the screen. When he is close to that area you stop him from walking.

Distance_X# = abs(Position_X - Sprite X(1))
Distance_Y# = abs(Position_Y - Sprite Y(1))
if abs(Distance_Y#) > 0 and abs(Distance_X#) > 0

if abs(Distance_X#) >= abs(Distance_Y#)

Pixel_FractionY# = Distance_Y#/Distance_X#
Pixel_FractionX# = 1

Else

Pixel_FractionX# = Distance_X#/Distance_Y#
Pixel_FractionY# = 1

Endif
Endif

PST
22
Years of Service
User Offline
Joined: 15th Mar 2004
Location:
Posted: 15th Jun 2004 18:11
How do you make a sprite collision with the mouse?(I'm using DBPro)
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jun 2004 19:00
You make the mouse into a sprite.

Sprite SpriteNo,Mousex(),Mousey(),ImageNo

Then just do a sprite collision check on it. You can make the image the size of a single pixel for pixel accurate buttons. You can hide it, and the collision still works.

Login to post a reply

Server time is: 2026-06-09 15:43:16
Your offset time is: 2026-06-09 15:43:16