2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue
2d tilemap, coordinates issue 2d tilemap, coordinates issue
2d tilemap, coordinates issue
Go Back  Xtreme Visual Basic Talk > > > 2d tilemap, coordinates issue


Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2008, 09:26 PM
clamosis clamosis is offline
Newcomer
 
Join Date: Dec 2007
Posts: 3
Default 2d tilemap, coordinates issue


I'm currently developing a RPG type game for a school final.
I have the 2d map drawn using StreamReader with a textfile, and a tileset.
I also have the character drawn to the form using

Code:
GFX.DrawImage(Charpics(Cyc), (CharacterLocation.X - CamX), (CharacterLocation.Y - CamY - AddedHeight))
Anyways, my issue is getting the map to change when the drawn character, Charpics, is on a certain x,y coordinate.

The actual changing of the map and tileset are fine, if I change the condition to a keypress they change without flaw.

The problem lies with the Charpics coordinate.

My attempt at it has been:

Code:
if CharacterLocation.X = 180 and CharacterLocation.Y = 0 then
    MapSelect()
end if
However, this does not return the desired effect.

I have this if statement in my timer's tick event, MapChangeCheck.Tick, where the interval is 100 milliseconds.

What am I doing wrong, and how can I fix this?
Reply With Quote
  #2  
Old 02-06-2008, 08:08 PM
Machaira's Avatar
Machaira2d tilemap, coordinates issue Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Are you sure that the CharacterLocation X and Y values actually get set to those values? How?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue 2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue 2d tilemap, coordinates issue
2d tilemap, coordinates issue
2d tilemap, coordinates issue
 
2d tilemap, coordinates issue
2d tilemap, coordinates issue
 
-->